Last active
July 7, 2016 16:44
-
-
Save hidenorly/7d5313b3f4630b831d27c6eacd950ec5 to your computer and use it in GitHub Desktop.
GTX-1080 など GeForce を Ubuntu 16.04 LTS で CUDA-8.0RC と共に使う ref: http://qiita.com/hidenorly/items/a3eb3a0375e6703d163b
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 add-apt-repository ppa:graphics-drivers/ppa | |
$ sudo apt-get update | |
$ sudo apt-get install nvidia-367 | |
$ sudo apt-get install mesa-common-dev | |
$ sudo apt-get install freeglut3-dev |
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
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
export CUDA_HOME=/usr/local/cuda |
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
$ chmod +x cuda_8.0.27_linux-run | |
$ sudo sh ./cuda_8.0.27_linux-run | |
$ sudo Reboot |
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
$ nvidia-smi |
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
$ cd NVIDIA_CUDA-8.0_Samples/5_Simulations/nbody | |
$ make | |
$ ./nbody -benchmark -numbodies=256000 -device=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment