Skip to content

Instantly share code, notes, and snippets.

@jwpleow
Last active April 17, 2025 14:51
Show Gist options
  • Select an option

  • Save jwpleow/e29aa9939d28129842620c31bb102975 to your computer and use it in GitHub Desktop.

Select an option

Save jwpleow/e29aa9939d28129842620c31bb102975 to your computer and use it in GitHub Desktop.
cuda notes

Ubuntu

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment