1. Download
Go to the following URL to download (requires login account)
Two, decompression
cudnn-xxxxxxxxxxxxx.tgz
Unzip the downloaded one to get a folder cuda
, the command is:
tar -zxvf xxxxxxxxxxxxx.tgz
Then, use the following two instructions to copy the files under the cuda folder to /usr/local/cuda/lib64/ and /usr/local/cuda/include/.
sudo cp cuda/lib/* /usr/local/cuda/lib64/
sudo cp cuda/include/* /usr/local/cuda/include/
Note that cuda under the local folder is a shortcut, as shown below
After the copy is complete, we can use the following command to view cuDNN information:
cat /usr/local/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
Successful installation!