Last active
August 29, 2018 13:42
-
-
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.
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/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