ASSUMING THAT YOU ARE USING UBUNTU 18.04

Download cuDNN Debian files (runtime, dev, and docs) from here: https://developer.nvidia.com/rdp/cudnn-download 93


1. Install the runtime library, for example:
$ sudo dpkg -i libcudnn7_7.6.5.32-1+cuda10.2_amd64.deb

2. Install the developer library, for example:
$ sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb

3. Install the code samples and the cuDNN Library User Guide, for example:
$ sudo dpkg -i libcudnn7-doc_7.6.5.32-1+cuda10.2_amd64.deb


Verify installation

Copy the cuDNN sample to a writable path.
$cp -r /usr/src/cudnn_samples_v7/ $HOME

Go to the writable path.
$ cd  $HOME/cudnn_samples_v7/mnistCUDNN

Compile the mnistCUDNN sample.
$make clean && make

Run the mnistCUDNN sample.
$ ./mnistCUDNN