cudnn, cudnn7.6.5 corresponding to cuda10.2, download link cuDNN Archive | NVIDIA Developer
This is the link of nvidia China. Compared with the website of .com, the download speed is faster, and registration is also required. Download the third version
cudnn library for linux
After the download is complete, open the file - download, right click on the blank space to open it in the terminal, and enter the command as follows
tar -xvf cudnn-10.2-linux-x64-v7.6.5.32.tgz
Transfer files and modify permissions after decompression
sudo cp ./cuda/lib64/* /usr/local/cuda/lib64
sudo cp ./cuda/include/cudnn.h /usr/local/cuda/include
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
Whether the test was successful
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
The result is as follows, it is successful