Skip to content

Instantly share code, notes, and snippets.

@Kei-jan
Created June 1, 2024 13:36
Show Gist options
  • Save Kei-jan/d59dd16188c27623c9511ad6a287a9f7 to your computer and use it in GitHub Desktop.
Save Kei-jan/d59dd16188c27623c9511ad6a287a9f7 to your computer and use it in GitHub Desktop.
Update CUDA

update cuda

  1. get sudo

  2. get linux version

nvidia-smi: highest cuda supportable installed
uname -smr: linux version
cat /etc/os-release: system version
  1. uninstall previous version
sudo /usr/local/cuda-x.xx/bin/cuda-uninstaller
sudo rm -rf cuda-x.x
  1. get new version https://developer.nvidia.com/
wget [CUDA_version_x]
  1. close x server
sudo systemctl stop gdm.service
sudo service lightdm stop
sudo systemctl stop display-manager
  1. install
sudo sh
/var/log/cuda-installer.log
nvidia-installer.log
  1. environment variables
~/.bashrc

example:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.3/lib64
export PATH=$PATH:/usr/local/cuda-11.3/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-13.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment