Stick to the apt provided nvidia-driver (e.g. sudo apt install nvidia-driver-535)
-
Find the cuda version you want https://developer.nvidia.com/cuda-toolkit-archive
-
Use the runfile install option
-
Continue installation even though driver is already preset
-
Install just CUDA without the driver (the warning message after install about the driver not being installed can be ignored, as it refers to the graphics drivers which you already have from
nvidia-driver) -
Add to your
.bashrc/.zshrc/ whatever
export PATH=/usr/local/cuda-<version>/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-<version>/lib64:$LD_LIBRARY_PATH
- Get cudnn https://developer.nvidia.com/rdp/cudnn-archive
- Installation guide: https://docs.nvidia.com/deeplearning/cudnn/archives/index.html