-
-
Save AlexDel/4986052be7560feb6b37dc76502311ca to your computer and use it in GitHub Desktop.
Install CUDA debian package
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
#!/bin/bash | |
echo "Checking for CUDA and installing." | |
# Check for CUDA and try to install. | |
if ! dpkg-query -W cuda; then | |
# The 16.04 installer works with 16.10. | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.2.148-1_amd64.deb | |
dpkg -i ./cuda-repo-ubuntu1604_9.2.148-1_amd64.deb | |
apt-get update | |
apt-get install cuda -y | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment