Basically this error is due to the fact that libcudnn*.so
files are not present in the installation path of cuda. It appears that on installing the cuda toolkit, the cudnn files are not by default installed. Now the installation path of cuda varies in different machines/installations for example it can be /usr/local/cuda/lib64
, but also in some cases can be /usr/lib/cuda/lib64/
etc.
- Anyway, where ever the installation path maybe, you can find it out by doing
whereis cuda
.
- Once that is done, then you need to download the specific cuda version of
cuDNN Library for Linux
from Nvidias website: https://developer.nvidia.com/cudnn
. Here in the following I download and install cuDNN for cuda 10.1.
Version 7 (libcudnn.so.7) can be directly downloaded as
wget https://developer.download.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.1_20191031/cudnn-10.1-linux-x64-v7.6.5.32.tgz?m2hqDRAYQiO6rrilch-TIU9xtf877-R5k-aUI4GXEShM3FY3Sap9Ua4wTj5LUxyQAED2lrSf2NSWhuEn-tQCvEDghZ4f