Last active
April 20, 2017 00:20
-
-
Save Schonhoffer/b7ac3adce4e4920afd8f1b4becdf1130 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb | |
sudo dpkg -i cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb | |
sudo apt-get update | |
sudo apt-get install -y cuda | |
rm cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb | |
wget http://developer.download.nvidia.com/compute/redist/cudnn/v5.1/cudnn-8.0-linux-x64-v5.1.tgz | |
sudo tar -xzf cudnn-8.0-linux-x64-v5.1.tgz -C /usr/local | |
rm cudnn-8.0-linux-x64-v5.1.tgz | |
sudo ldconfig | |
echo 'export CUDA_HOME=/usr/local/cuda-8.0' >> ~/.bashrc | |
echo 'export PATH=${CUDA_HOME}/bin:${PATH}' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH}' >> ~/.bashrc | |
source ~/.bashrc | |
sudo apt-get install -y python-pip python-dev python-tk build-essential libssl-dev libffi-dev | |
sudo pip install --upgrade pip | |
sudo pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.1-cp27-none-linux_x86_64.whl | |
sudo pip install azure-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment