Go to /usr/local/
see if there are any cuda-x.x
folder. Then remove it with:
Download from https://developer.nvidia.com/cuda-toolkit
Choose the way with your environment,
last step choose deb(local)
Follow the instruction
In this time, like this:
After installation complete, add below PATH
variable to the shellrc you use:
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#mandatory-post
CUDA installed
Official Installation Guide: https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#installlinux
Download from https://developer.nvidia.com/rdp/cudnn-archive
Select the support version of CUDA (this time I used is CUDA11.2 & cuDNN8.1.0)
Choose cuDNN Library for Linux(x86_64)
After downloaded, extract it and copy to the right place
Verify Version
cuDNN installed