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):

  1. from https://developer.nvidia.com/cuda-downloads downloaded cuda_8.0.44_linux.run
  2. sudo mkdir /usr/local/cuda-8.0
  3. sudo ./cuda_8.0.44_linux.run --override
  4. in /etc/profile.d/cuda.sh: export path=$path:/usr/local/cuda/bin
  5. in /etc/ld.so.conf.d/cuda.conf: /usr/local/cuda/lib64
  6. sudo ldconfig
  7. 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!
  8. rsync -av /usr/local/cuda/samples in cuda_samples/
  9. 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:

  1. sudo apt-get --purge remove nvidia-*
  2. sudo service lightdm stop
  3. download nvidia driver nvidia-linux-x86_64-367.57.run website
  4. sudo ./nvidia-linux-x86_64-367.57.run --no-opengl-files
  5. sudo ./cuda_8.0.44_linux.run (you should not install own nvidia-driver 367.48, have 367.57 installed)
  6. in /usr/local/cuda-8.0/include/host_config.h, comment line out: #error -- unsupported gnu version! gcc versions later 5 not supported!
  7. mkdir cuda_samples
  8. rsync -av /usr/local/cuda/samples .
  9. glpath=/usr/lib make
  10. 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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User