Last active
February 23, 2017 02:55
-
-
Save mGalarnyk/f3b78fb90ca58855bba01738dd88ef2c to your computer and use it in GitHub Desktop.
Install CUDA 7.5 for Ubuntu 14.04 for the blog post https://medium.com/@GalarnykMichael/installation-script-for-cuda-and-drivers-on-ubuntu-14-04-c41b2fcba38a#.n1fxj0qu2
This file contains hidden or 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
# http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/ | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
rm cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
echo 'export CUDA_HOME=/usr/local/cuda | |
export CUDA_ROOT=/usr/local/cuda | |
export PATH=$PATH:$CUDA_ROOT/bin:$HOME/bin | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_ROOT/lib64 | |
' >> ~/.bashrc | |
# Let terminal know of the changes to the .bashrc file | |
source .bashrc | |
sudo apt-get update | |
# y flag just says yes to all prompts | |
sudo apt-get install -y cuda | |
# Check if installation is successful by running the next line | |
# nvcc -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment