I have been trying to get cuda 8.0 toolkit installed on my linux PC running Ubuntu 14.04. I followed all the instructions for a deb install from the linux instructions verbatim here: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#axzz4VUjWAYUs
The post install instructions say to run make on the sample files. This completed with no errors. Then when I run deviceQuery it FAILS with “no CUDA-capable device is detected”. The 8.0 toolkit seems to install nvidia-367 driver. I saw in another post a method to check recommended drivers on Ubuntu as follows:
$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.0/0000:4b:00.0 ==
vendor : NVIDIA Corporation
modalias : pci:v000010DEd00001B00sv000010DEsd0000119Abc03sc00i00
driver : nvidia-367 - third-party free
driver : nvidia-375 - third-party free recommended
driver : nvidia-370 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
Then you can install using sudo apt-get install nvidia-375
This will remove nvidia-367 and some other related packages. When it finishes deviceQuery will PASS properly. I am not clear whether it is the newer driver or just installing the driver again after the normal install instructions that make everything work.
So my questions follow
- Why it did not work from following the instructions?
- Would it have worked if I chose nvidia-367 and just reinstalled it instead of nvidia-375
- Since nvidia-375 removed a bunch of packages and not all were replaced, am I in any danger of something not working correctly?
As a side note, I got to this same point (“no cuda capable device found”) on a previous deb install and gave up the deb package method in favor of a runfile install. That choice was a disaster that resulted in an infinite login loop that cost me about a day and a half to find a fix for. I will make a separate post on that.