The installation guide says to run the following command:
sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
But how should I fill distro
, version
and architecture
?
The installation guide says to run the following command:
sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
But how should I fill distro
, version
and architecture
?
If you use the CUDA downloads website and selected the appropriate options (say Linux, x86-64, Ubuntu, 16.04 in order), it will show the exact command you're supposed to run:
lsb_release -cd
to find out).uname -m
.distro
for Ubuntu 16.04 ? And what are the CUDA versions available and how to format them to version
?
Feb 11, 2020 at 13:34
ubuntu1604
in it. The downloads page is best for all of this - developer.nvidia.com/…
The CUDA downloads site only reflects the latest version of CUDA. You should check the following as well:
9.x
, so my maximum CUDA version is 11.4.0
(i did not want to install a newer GCC).11.3.1
, the driver version is 465.19.01
.The downloads site tells me to use cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
. I will change the versions accordingly:
Distro: ubuntu2004-11-6-local -> ubuntu2004-11-3-local
Version: 11.6.0-510.39.01-1 -> 11.3.1-465.19.01-1 (<CUDA version>-<driver version>)
Architecture: amd64 (no change)
So i change the downloads site output from:
wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu2004-11-6-local/7fa2af80.pub
to
wget https://developer.download.nvidia.com/compute/cuda/11.3.1/local_installers/cuda-repo-ubuntu2004-11-3-local_11.3.1-465.19.01-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-11-3-local_11.3.1-465.19.01-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu2004-11-3-local/7fa2af80.pub
If you've installed the wrong version (e.g. 11.6) and want to undo, you can use
sudo apt remove cuda
sudo dpkg remove cuda
sudo apt-key remove /var/cuda-repo-ubuntu2004-11-6-local/7fa2af80.pub
sudo rm /etc/apt/sources.list.d/cuda-ubuntu2004-11-6-local.list
sudo rm -r /usr/local/cuda-11.6
sudo rm /etc/alternatives/cuda /etc/alternatives/cuda-11