Install CUDA 11.2 - jeanollion/bacmman GitHub Wiki

Ubuntu 22.04:

  • first install nvidia-driver from Software & Updates
    • choose a Nvidia driver such as v535.
    • Check that the command nvidia-smi displays the GPU.
  • wget https://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda_11.2.0_460.27.04_linux.run
  • sudo sh cuda_11.2.0_460.27.04_linux.run --override
    • ignore the warning about the driver (choose continue)
    • select only CUDA Toolkit and
    • choose Install
  • sudo apt-get install libcudnn8 libcudnn8-dev
  • sudo apt autoremove
  • export CUDA_HOME=/usr/local/cuda
  • export PATH=$CUDA_HOME:$PATH
  • export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
  • sudo apt-get install libcublas-12-0

Windows

  • Install Cuda 11.2.
  • Install cudnn
    • Download and unzip cudnn 8.9.7 for cuda 11.x.
    • Find CUDA installation folder, for instance: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\
    • Copy respective files from cuDNN to CUDA installation folder. From bin to bin, include to include, lib/x64 to lib/x64