Installing Nvidia drivers

Hello,
just a short and a hopefully simple question:
When installing the Nvidia driver using RPM-Fusion (since this is the one and only way to go) and I also want to use CUDA do I need to install the default Nvidia driver and the Nvidia-CUDA driver, or does the last one suffice?
That’s it, thanks.

According to the rpmfusionHowto/CUDA, xorg-x11-drv-nvidia-cuda is sufficient (but pulls in anyway xorg-x11-drv-nvidia as dependency)

Follow please thoroughly this howto.

Hi, so I do need the Nvidia driver, either installed before the cuda driver, or as a dependency of the cuda driver.
Well, that answers my question. Thank you very much.

Yes, but this howto says:

  • While this repository (the official CUDA packages from NVIDIA)
    contains both the NVIDIA driver and CUDA toolkit, We recommend to
    use our packaged driver instead, in order to receive fixes needed by
    Fedora kernel update.

thus prefer the xorg-x11-drv-nvidia from rpmfusion to nvidia-driver from nvidia.

Follow this Howto please.

I always followed the howto, I was just not certain about the Cuda driver.

Cuda requires the nvidia driver and an nvidia GPU. The rpmfusion how-to shows how to do both. In one command it is dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

1 Like