Nvidia-cudnn official website
https://developer.nvidia.com/cuDNN
Register an nvidia account, and finally activate it by email
Click the magnifying glass on the webpage to search for cudnn and
select
cuDNN Archive | NVIDIA Developer
Select the v3 or v5 version you want to download
1. Unzip it A folder named cuda, there are two folders include and lib64 in the folder
2. Delete the original cudnn
sudo rm -rf /usr/local/cuda/include/cudnn.h
sudo rm -rf /usr/local/cuda/lib64/libcudnn*
- 1
- 2
3. Install and install the required version of cudnn, and cd to the newly decompressed cuda folder in the terminal
sudo cp include/cudnn.h /usr/local/cuda/include/
sudo cp lib64/lib* /usr/local/cuda/lib64/
- 1
- 2
4. cd to the /usr/local/cuda/lib64/ folder and establish a soft link (note that the version number is changed to your own) so. From longest to second
sudo chmod +r libcudnn.so.5.0.5
sudo ln -sf libcudnn.so.5.0.5 libcudnn.so.5
sudo ln -sf libcudnn.so.5 libcudnn.so
sudo ldconfig
- 1
- 2
- 3
- 4
5. Detection
cd /usr/local/cuda/lib64/
ll
- 1
- 2
The soft link record you have established will be displayed.
At this point , the cudnn version has been updated
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/production/markdown_views-68a8aad09e.css">
</div>
Nvidia-cudnn official website
https://developer.nvidia.com/cuDNN
Register an nvidia account, and finally activate it by email
Click the magnifying glass on the webpage to search for cudnn and
select
cuDNN Archive | NVIDIA Developer
Select the v3 or v5 version you want to download
1. Unzip it A folder named cuda, there are two folders include and lib64 in the folder
2. Delete the original cudnn
sudo rm -rf /usr/local/cuda/include/cudnn.h
sudo rm -rf /usr/local/cuda/lib64/libcudnn*
- 1
- 2
3. Install and install the required version of cudnn, and cd to the newly decompressed cuda folder in the terminal
sudo cp include/cudnn.h /usr/local/cuda/include/
sudo cp lib64/lib* /usr/local/cuda/lib64/
- 1
- 2
4. cd to the /usr/local/cuda/lib64/ folder and establish a soft link (note that the version number is changed to your own) so. From longest to second
sudo chmod +r libcudnn.so.5.0.5
sudo ln -sf libcudnn.so.5.0.5 libcudnn.so.5
sudo ln -sf libcudnn.so.5 libcudnn.so
sudo ldconfig
- 1
- 2
- 3
- 4
5. Detection
cd /usr/local/cuda/lib64/
ll
- 1
- 2
The soft link record you have established will be displayed.
At this point , the cudnn version has been updated
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/production/markdown_views-68a8aad09e.css">
</div>