Skip to content

Commit

Permalink
Add note for aws-neuron-dkms install to address multiple kernel versi…
Browse files Browse the repository at this point in the history
…ons (#253)

* Add note for aws-neuron-dkms install to address multiple kernel versions

* fix troubleshooting guide reference

* clarify how to check if dkms is installed for the current kernel

* clarify dkms dependency on linux kernel
  • Loading branch information
aws-wanhenr authored Jun 22, 2021
1 parent 65ca769 commit 0df49c3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions neuron-guide/neuron-runtime/nrt-troubleshoot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Please follow the installation steps in :ref:`neuron-install-guide` to install `
package and then restart runtime using
``sudo systemctl restart neuron-rtd`` command.

.. _neuron-driver-installation-fails:

Neuron Driver installation fails
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
12 changes: 11 additions & 1 deletion neuron-intro/install-templates/al2-pip-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ are installed.
sudo yum install aws-neuron-runtime-base
sudo yum install aws-neuron-runtime
sudo yum install aws-neuron-tools
.. note::
``aws-neuron-dkms`` is a special kernel module package that has a dependency on the linux kernel version. This
means that when the package is installed through yum, it will only be compatible with the linux kernel version
that was running on the instance during the installation.
You have to re-install this package if you change the linux kernel version. The current kernel version can be
checked using ``uname -r``, and a list of the kernels that have dkms installed can be checked with
``dkms status | grep aws-neuron``. Refer to the :ref:`NRT Troubleshooting Guide <neuron-driver-installation-fails>`
for steps on how to re-install aws-neuron-dkms on a new kernel.
11 changes: 11 additions & 0 deletions neuron-intro/install-templates/ubuntu-pip-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
.. note::
``aws-neuron-dkms`` is a special kernel module package that has a dependency on the linux kernel version. This
means that when the package is installed through apt, it will only be compatible with the linux kernel version
that was running on the instance during the installation.
You have to re-install this package if you change the linux kernel version. The current kernel version can be
checked using ``uname -r``, and a list of the kernels that have dkms installed can be checked with
``dkms status | grep aws-neuron``. Refer to the :ref:`NRT Troubleshooting Guide <neuron-driver-installation-fails>`
for steps on how to re-install aws-neuron-dkms on a new kernel.

0 comments on commit 0df49c3

Please sign in to comment.