Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Manojbhat09
Last active July 2, 2020 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Manojbhat09/874bc86c1e67e9fb9f6966a8749ea155 to your computer and use it in GitHub Desktop.
Save Manojbhat09/874bc86c1e67e9fb9f6966a8749ea155 to your computer and use it in GitHub Desktop.
How to install cuda on Azure
# 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