在网站中找到和cuda版本相应的cudnn版本
https://developer.nvidia.cn/rdp/cudnn-archive#a-collapse805-101
解压文件
tar -xvf cudnn-10.1-linux-x64-v8.0.5.39.tgz
把文件进行拷贝
sudo cp cuda/include/cudnn* /usr/local/cuda/include sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 sudo chmod a+r /usr/local/cuda/include/cudnn* sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
查看cudnn版本
cat /usr/local/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
标签:安装,sudo,cudnn,cuda,include,local,usr From: https://www.cnblogs.com/fzx6/p/17254383.html