Under ubuntu, the installation of cuDNN

1. Download

Go to the following URL to download (requires login account)

Log in | NVIDIA Developer

Two, decompression

cudnn-xxxxxxxxxxxxx.tgzUnzip 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!

Guess you like

Origin blog.csdn.net/gaoenyang760525/article/details/131256427