title | description | keywords | facebookImage | twitterImage | hidden | section | tableOfContents | ||
---|---|---|---|---|---|---|---|---|---|
CUDA and cuDNN (Install) |
Complete instructions on setting up the NVIDIA CUDA toolkit and cuDNN libraries
|
|
/_social/article |
/_social/article |
false |
software |
true |
To install the CUDA toolkit, please run this command:
sudo apt install system76-cuda-latest
To install the cuDNN library, please run this command:
sudo apt install system76-cudnn-11.2
To install CUDA 11.1
sudo apt install system76-cuda-11.1
For the respective cuDNN library:
sudo apt install system76-cudnn-11.1
To install CUDA 10.0:
sudo apt install system76-cuda-10.0
For the respective cuDNN library:
sudo apt install system76-cudnn-10.0
To install CUDA 10.1:
sudo apt install system76-cuda-10.1
For the respective cuDNN library:
sudo apt install system76-cudnn-10.1
To install CUDA 10.2:
sudo apt install system76-cuda-10.2
For the respective cuDNN library:
sudo apt install system76-cudnn-10.2
You can switch between each CUDA version with the following command:
sudo update-alternatives --config cuda
To verify installation, run this command to see the current version of the NVIDIA CUDA compiler:
nvcc -V
You can check the version of cuDNN with this command:
cat /usr/lib/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
The previous instructions will work with Pop!_OS out of the box but for Ubuntu and other Debian derivatives the following commands will need to be run first:
Ubuntu 20.04 LTS
echo "deb http://apt.pop-os.org/proprietary focal main" | sudo tee -a /etc/apt/sources.list.d/pop-proprietary.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 204DD8AEC33A7AFF
sudo apt update
Ubuntu 21.04
echo "deb http://apt.pop-os.org/proprietary hirsute main" | sudo tee -a /etc/apt/sources.list.d/pop-proprietary.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 204DD8AEC33A7AFF
sudo apt update
*These packages have been tested with the System76 NVIDIA driver only.
The following article will go over installing the System76 NVIDIA driver.