Installing CUDA-8.0 on Ubuntu 16.04 with Nvidia GeForce 845m - Ask Ubuntu
after having installed nvidia driver 367 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 install nvidia-cuda 8.0.
these steps (following this guide):
- from https://developer.nvidia.com/cuda-downloads 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:
export path=$path:/usr/local/cuda/bin
- in /etc/ld.so.conf.d/cuda.conf:
/usr/local/cuda/lib64
sudo ldconfig
- force cuda work gcc 5, commenting line 119 out in usr/local/cuda/include/host_config.h:
//#error -- unsupported gnu version! gcc versions later 5 not supported!
rsync -av /usr/local/cuda/samples
in cuda_samples/sudo glpath=/usr/lib make
however, when type:
./nbody -benchmark -numbodies=256000
in samples/bin/x86_64/linux/release, message:
error: 0 devices available, 1 requested. exiting.
any help?
i partially solved way:
sudo apt-get --purge remove nvidia-*
sudo service lightdm stop
- download nvidia driver nvidia-linux-x86_64-367.57.run website
sudo ./nvidia-linux-x86_64-367.57.run --no-opengl-files
sudo ./cuda_8.0.44_linux.run
(you should not install own nvidia-driver 367.48, have 367.57 installed)- in /usr/local/cuda-8.0/include/host_config.h, comment line out:
#error -- unsupported gnu version! gcc versions later 5 not supported!
mkdir cuda_samples
rsync -av /usr/local/cuda/samples .
glpath=/usr/lib make
reboot
and cuda-8.0 enabled!
caveat: got nvidia driver website, nvidia-settings doesn't work. trying figure out how make nvidia-settings work.
Comments
Post a Comment