Skip to content

Instantly share code, notes, and snippets.

@hidenorly
Last active July 7, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidenorly/7d5313b3f4630b831d27c6eacd950ec5 to your computer and use it in GitHub Desktop.
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
$ 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
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
$ chmod +x cuda_8.0.27_linux-run
$ sudo sh ./cuda_8.0.27_linux-run
$ sudo Reboot
$ nvidia-smi
$ 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