Skip to content

Instantly share code, notes, and snippets.

@ErikGartner
Last active August 29, 2018 13:42
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 ErikGartner/69375c28dbac8de2e850f4adff07ff86 to your computer and use it in GitHub Desktop.
Save ErikGartner/69375c28dbac8de2e850f4adff07ff86 to your computer and use it in GitHub Desktop.
CUDA installation scripts. Note that these script are rough and doesn't check for all eventualities.
#! /bin/sh
# Installs CUDA 8.0 (not cuDNN) on Ubuntu 16.04 (or equivalent).
# Remove old stuff
sudo apt remove --purge -y "*cuda*" "*nvidia*" "*cudnn*"
# Download CUDA
wget "https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb" -O "cuda.deb"
wget "https://developer.nvidia.com/compute/cuda/8.0/Prod2/patches/2/cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64-deb" -O "cuda-patch.deb"
# Install CUDA repositories
sudo dpkg -i "cuda.deb"
sudo dpkg -i "cuda-patch.deb"
# Remove deb files
rm cuda.deb cuda-patch.deb
# Install cuda meta package
sudo apt update
sudo apt install -y cuda-8-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment