Skip to content

Instantly share code, notes, and snippets.

@functionstackx
Last active August 15, 2024 01:28
Show Gist options
  • Select an option

  • Save functionstackx/b039ab34b51f0cacccd40e4c0f4be838 to your computer and use it in GitHub Desktop.

Select an option

Save functionstackx/b039ab34b51f0cacccd40e4c0f4be838 to your computer and use it in GitHub Desktop.
upgrade-cuda
sudo apt-get purge -y --allow-change-held-packages "*nvidia*" "*cuda*" "*nccl*" && sudo apt-get -y --allow-change-held-packages autoremove && sudo apt-mark showhold | xargs -r sudo apt-mark unhold
distribution=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g')
wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update
sudo apt-get install -y cuda-drivers-fabricmanager-550 libnccl2=2.22.3-1+cuda12.4 libnccl-dev=2.22.3-1+cuda12.4 cuda-toolkit-12.4
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment