Skip to content

Instantly share code, notes, and snippets.

@allenday
Created June 7, 2017 02:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save allenday/f426e0f146d86bfc3dada06eda55e123 to your computer and use it in GitHub Desktop.
Save allenday/f426e0f146d86bfc3dada06eda55e123 to your computer and use it in GitHub Desktop.
Install CUDA debian package
#!/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_8.0.61-1_amd64.deb
dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
apt-get update
apt-get install cuda -y
fi
@flagshipdynamics
Copy link

Thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment