Created
July 26, 2021 19:00
-
-
Save Quasimondo/71d9eb865210cd7e66e4690c28c5e72c to your computer and use it in GitHub Desktop.
Install Cuda 11-1 on Ubuntu 20.94
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
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt update | |
sudo apt upgrade | |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin | |
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda-repo-ubuntu2004-11-1-local_11.1.0-455.23.05-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu2004-11-1-local_11.1.0-455.23.05-1_amd64.deb | |
sudo apt-key add /var/cuda-repo-ubuntu2004-11-1-local/7fa2af80.pub | |
sudo apt-get update | |
sudo apt-get -y install cuda | |
''' | |
create addcudapath.sh to /etc/profile.d | |
sudo chmod +x addcudapath.sh | |
then exit the session and log back in | |
#!/bin/bash | |
export PATH=/usr/local/cuda-11.1/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment