no CUDA-capable device is detected

941 views
Skip to first unread message

ake Jixun

unread,
Jan 27, 2015, 12:35:44 AM1/27/15
to caffe...@googlegroups.com
After make and make test successfully.  Got the following error by "make runtest"

.build_release/test/test_all.testbin 0 --gtest_shuffle
Cuda number of devices: 0  (which should be > 0)
Setting to use device 0
Current device id: 0
E0127 13:16:08.212196  3228 common.cpp:91] Cannot create Cublas handle. Cublas won't be available.
E0127 13:16:08.213647  3228 common.cpp:98] Cannot create Curand generator. Curand won't be available.


E0127 13:16:08.213647  3228 common.cpp:98] Cannot create Curand generator. Curand won't be available.

Environment: ubuntu 14.04
CPU: i3 4150
GPU: GTX 970 graphics card
 In the BIOS i set the primary gpu as iGPU(integrated in cpu).

GPU driver installation:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346

CUDA toolkit is from https://developer.nvidia.com/cuda-downloads-geforce-gtx9xx#linux
cuda-linux64-rel-6.5.19-18849900.run extracted.

There is no items in /dev/, which should be /dev/nvidia*
But by  command "lspci |grep 'VGA'"
00:02.0 VGA compatible controller: Intel Corporation Device 041e (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 13c2 (rev a1)

I don't know if it's necessary to set the gtx970 as the primary gpu for display, or should i
install a different gpu driver?

Could anyone help me with it!

Evan Shelhamer

unread,
Jan 27, 2015, 9:45:34 AM1/27/15
to ake Jixun, caffe...@googlegroups.com
Don't install the NVIDIA driver by apt-get; instead, install the latest driver from NVIDIA as detailed in the installation instructions.

If the device doesn't exist, this is a GPU / Linux install issue and not a Caffe problem. The driver is too old to recognize the GTX 970.

Try again once the device is recognized by Ubuntu.
--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/63239efe-247c-4ff7-ac4d-0b8c47216d05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages