Created
July 11, 2023 05:13
-
-
Save johan149/dd4b23649f95c48d65ee106e9c463386 to your computer and use it in GitHub Desktop.
This file contains 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
# bash <(curl -sL https://gist.githubusercontent.com/johan149/dd4b23649f95c48d65ee106e9c463386/raw/fc9f88db1fcfbb1e79e6a6c8197ac254471d2977/install_cuda_12.2.0_ubuntu2204.sh) | |
# Remove current cuda version | |
sudo apt-get --purge remove -y "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*" | |
sudo apt-get --purge remove -y "*nvidia*" "libxnvctrl*" | |
sudo apt-get autoremove -y | |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin | |
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
wget https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda-repo-ubuntu2204-12-2-local_12.2.0-535.54.03-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu2204-12-2-local_12.2.0-535.54.03-1_amd64.deb | |
sudo cp /var/cuda-repo-ubuntu2204-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/ | |
sudo apt-get update | |
sudo apt-get -y install cuda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment