I am very very new to CUDA programming. I am going through the examples that came with the SDK. I was able to compile the code, but when I run it, I get the following error:
"clock.cu(177) : CUDA Runtime API error 38: no CUDA-capable device is detected"
.
I have GeForce 8400M GS on my machine, and according to this list, it is a CUDA-supported GPU: http://developer.nvidia.com/cuda-gpus.
You can verify that you have a CUDA-capable GPU through the Display Adapters section in the Windows Device Manager. Here you will find the vendor name and model of your graphics card(s). If you have an NVIDIA card that is listed in http://developer.nvidia.com/cuda-gpus, that GPU is CUDA-capable.
CUDA® is a parallel computing platform and programming model that enables dramatic increases in computing performance by harnessing the power of the graphics processing unit (GPU).
No cuda capable device detected: This probably means that GPUs are not detected by CUDA. You can check your CUDA installation or GPU drivers by trying to run any sample application from CUDA SDK, like deviceQuery, and see if GPUs are properly detected by the system or not.
CUDA works with all Nvidia GPUs from the G8x series onwards, including GeForce, Quadro and the Tesla line. CUDA is compatible with most standard operating systems.
There are several things you can check to fix that error:
Make sure that your /dev/nvidia*
's permission is 666
(crw-rw-rw-
) and owner root:root
If you installed the SDK using sudo
, then you may need to change
to root first to execute the code
Make sure you've installed the compatible NVIDIA's driver available in CUDA zone for your CUDA Toolkit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With