Last active
August 15, 2024 01:28
-
-
Save functionstackx/b039ab34b51f0cacccd40e4c0f4be838 to your computer and use it in GitHub Desktop.
upgrade-cuda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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