
Step 3: According to the suggestion I have added the key into the keyrings directory: sudo cp /var/cudnn-local-repo-ubuntu2204-8.5.0.96/cudnn-local-7ED72349-keyring.gpg /usr/share/keyrings/

Step 2: I cd into the Download and run the following command to prepare the installation: cd Downloads sudo dpkg -i cudnn-local-repo-ubuntu2204-8.5.0.96_1.0-1_b Step 1: I went to the cudnn download website and downloaded the installer for Ubuntu 22.04 which is my LinuxMint is based on: so I will just replace the sudo placeholder version numbers with the package version I have downloaded. The steps are mentioned in the doc properly. Then I followed the CuDNN documentation to install the CuDNN. So if CuDnn is not available for 11.7 I might needed to wait for the version or revert back to older driver-cuda combination (for example 510 driver with 11.2 cuda).

In my case It is automatically installed 11.7 version. One caveats of using apt to install cuda-toolkits is, it won’t let you choose the specific version of the kit. export LD_LIBRARY_PATH=/usr/local/cuda/lib export PATH=$PATH:/usr/local/cuda/bin To activate the command I had to add the the following lines into my bash profile and re-source the. But while using nvcc -version command in the terminal the command was not working. Let see the nvidia smi info after I log-in back:Īfter I install main driver, I install CUDA toolking using apt. But every time I make a switch I need to log-out and log-in back to reset the driver mode. Prime is a command line tool to switch between GPUs. Firs I need to switch into the Nvidia mode from Intel mode as follows: sudo prime-select on-demand Lets also have a look at the nvidia driver info. The corresponding Ubuntu Version I am using: ~ $ cat /etc/upstream-release/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu Jammy Jellyfish" Lets have a look first the Mint version I am using: ~ $ cat /etc/os-release NAME="Linux Mint" VERSION="21 (Vanessa)" ID=linuxmint ID_LIKE="ubuntu debian" PRETTY_NAME="Linux Mint 21" VERSION_ID="21" HOME_URL=" " SUPPORT_URL=" " BUG_REPORT_URL=" " PRIVACY_POLICY_URL=" " VERSION_CODENAME=vanessa UBUNTU_CODENAME=jammy So lets install CuDNN in LinuxMint, the instruction is also valid for any Debian based Distro. So I decided to write that document mostly for me, but considering others will also be benefited from it. At the time of writing this post a lot of things already has been automated with apt but recommended way to do CuDNN installation is still manual. As I are not often doing it, which makes it easy to forget how I did it last time.

Install and Setup CuDNN 8.5.x for CUDA 11.7 in Linux Mint (Debian/Ubuntu 22.04)Įvery time I up-grade my LinuxMint to latest version, I struggle with installing CUDNN and CUDA.
