Last active
July 2, 2020 12:31
-
-
Save Manojbhat09/874bc86c1e67e9fb9f6966a8749ea155 to your computer and use it in GitHub Desktop.
How to install cuda on Azure
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
# Replace ubuntu1604 with ubuntu1804 | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list' | |
sudo apt update | |
sudo apt install cuda-10-0 --yes | |
# Cudnn: download library from https://developer.nvidia.com/rdp/cudnn-download | |
# Extract the tgz file | |
sudo cp cuda/include/cudnn.h /usr/local/cuda-10.0/include/ | |
sudo cp cuda/lib64/libcudnn* /usr/local/cuda-10.0/lib64/ -r | |
sudo chmod 777 /usr/local/cuda-10.0/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment