Skip to content

Instantly share code, notes, and snippets.

@revilokeb
Created January 22, 2017 19:35
Show Gist options
  • Save revilokeb/33e0e93b9ebca32ffad0a21a98d915bf to your computer and use it in GitHub Desktop.
Save revilokeb/33e0e93b9ebca32ffad0a21a98d915bf to your computer and use it in GitHub Desktop.
Installing CUDA 7.5 / cuDNN 5.1 on a fresh Ubuntu Server 14.04
# following http://kislayabhi.github.io/Installing_CUDA_with_Ubuntu/
# Problem was the following: package installer always installed CUDA 8.0
# Run-File install as in https://devtalk.nvidia.com/default/topic/920308/how-to-install-cuda-7-5-with-the-newest-nvidia-driver-361-28-/ resulted in "login loop"
# After setting up the OS in Ubuntu 14.04 there is initially only command line
# Download: A reasonably up-to-date NVIDIA driver: http://www.nvidia.com/download/driverResults.aspx/98373/en-us#axzz41eljfR2P
# Download: CUDA 7.5 Run-File: http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run
# Download: cuDNN 5.1
sudo apt-get install build-essential
# ignore the warnings that pop up during driver install; after installation check: nvidia-smi
sudo ./NVIDIA-Linux-x86_64-361.28.run --no-opengl-files # --no-opengl-files is key, else you will end up in the "login loop"
# dont install another driver, i.e. say no to the first question; Warning after install is ok and can be ignored; check samples/1_Utilities/deviceQuery
sudo ./cuda_7.5.18_linux.run
# set environment paths in .bashrc
# install unity if you like
sudo apt-get install --no-install-recommends ubuntu-desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment