Skip to content

Commit

Permalink
Fix nvidia modules failing to recognize GPU cards
Browse files Browse the repository at this point in the history
Nvidia has recently made available (some of?) their kernel modules in
the kmod-nvidia-open-dkms package. This package automatically replaces
kmod-nvidia-latest-dkms, i.e., the original proprietary version.
Nevertheless, the open version of the modules do not support the older
GPU cards such as Tesla cards. To restore the support for the old cards,
the proprietary version needs to be installed. This can be achieved by
installing the proprietary version first, and then installing the whole
cuda, so that the dependency on the kmod from nvidia is already met.
  • Loading branch information
matteopozza committed Oct 13, 2022
1 parent 2f973ee commit 3101916
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions elements/nvidia-cuda/post-install.d/01-nvidia-cuda-install
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ if [ "$DISTRO_NAME" = "centos7" ]; then
# repositories, it will try to use dkms to build a
# kmod-nvidia-latest-dkms module that matches the
# just now installed kernel and headers.
#
# 2022-10-13 nvidia has released kmod-nvidia-open-dkms, which automatically
# replaces kmod-nvidia-latest-dkms. The open version do not support the
# older GPU cards, so the wanted version needs to be installed before
# installing the whole cuda
yum install -y kmod-nvidia-latest-dkms
yum install -y cuda
# The element called "bootloader" should take care of
# configuring grub to use the most recent kernel.
Expand Down

0 comments on commit 3101916

Please sign in to comment.