How to Install cuDNN: Difference between revisions

From RidgeRun Developer Wiki
(Created page with "The following is a summary of the instructions in [https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html NVIDIA's official documentation] = Tested OS = These ins...")
 
No edit summary
Line 30: Line 30:
sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb
sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb
sudo dpkg -i libcudnn7-doc_7.6.5.32-1+cuda10.2_amd64.deb
sudo dpkg -i libcudnn7-doc_7.6.5.32-1+cuda10.2_amd64.deb
</syntaxhightlight>
</syntaxhighlight>


= Validating Installation =
= Validating Installation =

Revision as of 22:19, 6 February 2020

The following is a summary of the instructions in NVIDIA's official documentation

Tested OS

These instructions have been tested on:

  • Elementary Hera 5.1

Download

Download the following packages from cuDNN download page.

  • cuDNN Runtime Library for Ubuntu18.04 (Deb)
  • cuDNN Developer Library for Ubuntu18.04 (Deb)
  • cuDNN Code Samples and User Guide for Ubuntu18.04 (Deb)

The remainder of the wiki assumes these have been downloaded to **~/Downloads**

Configuration Variables

CUDNN_DIR=~/cuDNN

Installing cuDNN

mkdir -p $CUDNN_DIR
mv ~/Downloads/libcudnn* $CUDNN_DIR

sudo dpkg -i libcudnn7_7.6.5.32-1+cuda10.2_amd64.deb
sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb
sudo dpkg -i libcudnn7-doc_7.6.5.32-1+cuda10.2_amd64.deb

Validating Installation

cp -r /usr/src/cudnn_samples_v7/ $CUDNN_DIR
cd ${CUDNN_DIR}/cudnn_samples_v7/mnistCUDNN
make clean && make

# Run the test
./mnistCUDNN