Driver 460.80 safe for install CUDA 11.4 on Ubuntu 18.04?

I would like to install the CUDA Toolkit on my Ubuntu 18.04 HP Z240 machine. I currently have installed drivers 460.80, see output of nvidia-smi

±----------------------------------------------------------------------------+
| NVIDIA-SMI 460.80 Driver Version: 460.80 CUDA Version: 11.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro K2200 Off | 00000000:01:00.0 On | N/A |
| 42% 41C P8 1W / 39W | 445MiB / 4040MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

  1. Is it safe to do so, as far as compatibility between driver 460.80 and CUDA Toolkit 11.4 is concerned?

  2. Or will the CUDA install also install a newer driver?

  3. Or should I stay with an older version of CUDA Toolkit?

AFAIK, nvidia-smi shows the max supported CUDA version.
cuda-toolkit will not install a newer driver. Other then a complete CUDA installation (which is not recommended due to non distro packaged driver).

Thank you very much for that info - so I can (and will) safely install CUDA toolkit version 11.2. Just to be sure: What is a “complete CUDA installation” and will the CUDA toolkit installer from

(say the .deb local type) not do a “complete CUDA installation”?

Greetings
Jürgen

As far I recall, you add the repository and then install cuda-toolkit only. Not the complete cuda.

Just for the record and for the use of coming-by readers of this thread:

I installed 11.2.0 via the runfile installer, avoiding the package manager. It seems to work flawlessly, I built ‘deviceQuery’ and ‘fluidsGL’ from the samples and they ran ok. Also my application asxp (Algebraic Surface eXPlorer) (available on GitHub), which was the ultimate purpose of installing CUDA, compiled and ran perfectly.

The runfile, upon executed, displayed a simple ncurses (text based pseudo GUI) interface where it was possible to unselect the option to install the drivers.

So I installed everything but the drivers and therefore could do all selection in my X terminal, no need to reboot and switch to runlevel 3. This is only necessary if one intends to install also the drivers contained in the runfile. (By the way, they had a smaller version number than my currently installed ones).

I think using the runfile is for me the better option, because

  1. If one installs via the package manager, one gets update recommendations automatically, which one has to decline explicitly, if one does not want the local CUDA installation to be a “moving target”.

  2. If one follows the official path of install via deb local (or net) and concludes with ‘apt install cuda’ one does, what I did not want, namely replace the drivers too (so one has, what I wanted to avoid “a complete CUDA installation”).

  3. It seems there is clean way to uninstall everything if necessary very simple by executing an uninstall script. If one wants to deinstall using the package manager there is always the danger to deinstall too much or too less, if one works with wildcards in ‘apt remove’.

If you want to see a preview of the install process, look at

(the author of the video tries first to install via a deb-package but finally uses the runfile method).