After having installed nvidia driver 367 by typing:
sudo add-apt-repository ppa:graphics-drivers/ppa -y sudo apt-get update sudo apt-get install nvidia-367 -y
and disabled Secure Boot in UEFI (BIOS) settings, I'm trying to install properly nvidia-cuda 8.0.
These were my steps (following this guide):
- from https://developer.nvidia.com/cuda-downloads I downloaded cuda_8.0.44_linux.run
sudo mkdir /usr/local/cuda-8.0
sudo ./cuda_8.0.44_linux.run --override
- in /etc/profile.d/cuda.sh:
- in /etc/ld.so.conf.d/cuda.conf:
- Force cuda to work with gcc 5, commenting line 119 out in usr/local/cuda/include/host_config.h:
//#error -- unsupported GNU version! gcc versions later than 5 are not supported!
rsync -av /usr/local/cuda/samplesin my cuda_samples/
sudo GLPATH=/usr/lib make
However, when i type:
./nbody -benchmark -numbodies=256000
in samples/bin/x86_64/linux/release, I get this message:
Error: only 0 Devices available, 1 requested. Exiting.