In GPU drivers. I would like to know the correct method or repos to use to install GPU drivers with cuda support. All this time I have been installing gpu drivers using the elrepo repository and I install 3 packages kmod-nvidia, nvidia-x11-drv, nvidia-x11-drv-libs.
There is also a cuda repository and a nvidia repository.
I have as a test installed drivers using a nvidia repository and installed nvidia-drivers and nvidia-driver-libs.
But im abit confused between the cuda and the nvidia repository and which one should I really be using on rocky 9.3?
I know nvidia-smi shows me a cuda version but that only shows me the highest supported cuda that gpu card can support.
ls -l /usr/local | grep cuda - shows me the actually version installed. Does this cuda install get installed or is bundled in the elrepo nvidia drivers?
First, ELRepo is awesome, but they chose to not build proprietary NVidia packages for EL9. It is understandable, since there are other repos that do. One of those are the RPMFusion repos.
The only repo to provide CUDA (that I know of) are the NVidia’s repos. They hold both the GPU driver and the CUDA, so that should definitely be a “matching pair”.
For that reason I do have (and EPEL repo is required too):
Thank you for this. I have question about downgrading drivers for older cards. The 470 driver is available from the elrepo repo for rocky 8 but as no drivers are available for rocky 9 will have to use nvidia repo. Where do i get older drivers for rocky 9. We have some systems that need older gpu drivers. Certain applications don’t like newer drivers and cause certain tools to slow things down in the app. This is especially for 3dequalizer app.
I would take a look at the guide here on the forums. The guide talks about using rpmfusion. rpmfusion is recommended over the nvidia repos if you are needing an older driver.
See the rpmfusion wiki for more information on the drivers that can be installed. You can also view this page for CUDA information.
So i got my rocky 9.3 working with nvidia repository. Relevant nvidia and cuda drivers get installed. But for rpmfusion non free updates rpm. I have the below installed but cat /proc/driver/nvidia does not exist and nvidia-smi does not see the driver either.
I installed:
kmod-nvidia
nvidia-driver
nvidia-kmod-common
nvidia-settings
nvidia-xconfig
The kernel module is from package kmod-nvidia-470xx-5.14.0-362.el9_3, but RPM Fusion has only package kmod-nvidia-470xx. The kmod-nvidia-470xx-5.14.0-362.el9_3 must have been generated locally, by dkms, akmod, or whatever system RPM Fusion does use.
Your installation has failed to do that.
In fact, for installing the RPM Fusion 470xx driver, I had installed only two packages explicitly:
On login dialog (gdm), after you have given/selected user and could type password there is a cog wheel on right bottom corner. There you can choose session type. Gnome(wayland) is the default, but there should be Gnome(x11) too and the selection should store (in home dir) for future sessions too.