Created
November 21, 2015 23:10
-
-
Save iver56/5f6a6dc5cdd7fc102dd4 to your computer and use it in GitHub Desktop.
Install CUDA on Amazon EC2 g2.2xlarge instance
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
sudo apt-get update | |
sudo apt-get -y dist-upgrade | |
sudo apt-get install -y gcc g++ gfortran build-essential linux-image-generic libopenblas-dev python-nose python-numpy python-scipy linux-headers-generic-lts-trusty linux-source | |
sudo rm /boot/grub/menu.lst | |
sudo update-grub | |
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.28_linux.run | |
# if / has only around 8 GB, move that file to /mnt which has lots of space | |
mv ~/cuda_7.0.28_linux.run /mnt | |
sudo sh /mnt/cuda_7.0.28_linux.run | |
# accept eula, answer yes to every question and use default directories | |
echo 'export PATH=/usr/local/cuda-7.0/bin:$PATH' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc | |
sudo reboot | |
# verify/test cuda | |
nvidia-smi | |
# check output | |
cd NVIDIA\_CUDA-7.0\_Samples/1\_Utilities/deviceQuery | |
make | |
./deviceQuery | |
# check output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment