-
Decide CUDNN version from TF-GPU requirement https://www.tensorflow.org/install/source#gpu
Here I needed CUDNN 8.0 for my TF==2.4.1
-
Download that version from CUDNN archive https://developer.nvidia.com/rdp/cudnn-archive
-
Terminal: cd ~/to/the/download/location/path
-
Extract the folder to cuda folder by clicking : #This is only for Linux
- sudo cp -P cuda/include/cudnn.h /usr/local/cuda-11.0/include
- sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-11.0/lib64/
- sudo chmod a+r /usr/local/cuda-11.0/lib64/libcudnn*