no CUDA-capable device is detected

Hello,

After I installed CUDA and test it with running deviceQuery (from NVIDIA_CUDA-8.0_Samples), it shows:

./deviceQuery Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL

$ ls -l /usr/bin/ |grep nvidia
-rwxr-xr-x 1 root root       24351 Jun  4 00:51 nvidia-bug-report.sh
-rwxr-xr-x 1 root root       60536 Jun  4 00:51 nvidia-cuda-mps-control
-rwxr-xr-x 1 root root       46344 Jun  4 00:51 nvidia-cuda-mps-server
-rwxr-xr-x 1 root root      221968 Jun  4 00:51 nvidia-debugdump
-rwxr-xr-x 1 root root         270 Sep  7  2016 nvidia-detector
-rwxr-xr-x 1 root root      352808 Jun  4 00:51 nvidia-installer
-rwsr-xr-x 1 root root       29424 Jun  4 00:51 nvidia-modprobe
-rwxr-xr-x 1 root root       37992 Jun  4 00:51 nvidia-persistenced
-rwxr-xr-x 1 root root      294472 Jun  4 00:51 nvidia-settings
-rwxr-xr-x 1 root root      488896 Jun  4 00:51 nvidia-smi
lrwxrwxrwx 1 root root          16 Jun  4 00:51 nvidia-uninstall -> nvidia-installer
-rwxr-xr-x 1 root root      188096 Jun  4 00:51 nvidia-xconfig
$ ls -l /dev |grep nvidia
crw-rw-rw-  1 root root    195,   0 Jun  4 01:02 nvidia0
crw-rw-rw-  1 root root    195, 255 Jun  4 01:02 nvidiactl
crw-rw-rw-  1 root root    195, 254 Jun  4 01:02 nvidia-modeset
crw-rw-rw-  1 root root    240,   0 Jun  4 12:56 nvidia-uvm
crw-rw-rw-  1 root root    240,   1 Jun  4 12:56 nvidia-uvm-tools
sudo dmesg |grep NVRM
[sudo] password for ece504: 
[    2.896798] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  375.26  Thu Dec  8 18:36:43 PST 2016 (using threaded interrupts)
[    4.055534] NVRM: Your system is not currently configured to drive a VGA console
[    4.055535] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[    4.055536] NVRM: requires the use of a text-mode VGA console. Use of other console
[    4.055537] NVRM: drivers including, but not limited to, vesafb, may result in
[    4.055537] NVRM: corruption and stability problems, and is not supported.

My system is Ubuntu 16.04. It’s Dell computer.

Thank you!

nvidia-bug-report.log.gz (85.8 KB)
nvidia-installer.log (3.56 KB)

I attach the nvidia-bug-report.log.gz and nvidia-installer.log files.

If any other information needed, please let me know.

Thank you!

The problem is solved.

For anyone who may meet this problem, the solution is:

My GPU is GTX 1080 TI, it can not use the drive provided by CUDA toolkit. Even everything seems fine, CUDA can not detect it. I use the driver version of 381.22. It can work.