cudnn8.0.4 安装

1下载

cudnn下载地址:https://developer.nvidia.com/rdp/cudnn-archive
需要提前注册,找到对应版本,下载cuDNN Library for Linux压缩包即可

2安装

解压压缩包,并终端进入文件夹,执行以下

sudo cp cuda/include/* -R /usr/local/cuda-11.1/include/ 
sudo cp cuda/lib64/libcudnn* /usr/local/cuda-11.1/lib64/ 
sudo chmod a+r /usr/local/cuda-11.1/include/cudnn.h 
sudo chmod a+r /usr/local/cuda-11.1/lib64/libcudnn*

3测试

cat /usr/local/cuda-11.1/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
Logo

更多推荐