Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CUDA-capable device

Tags:

cuda

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.

like image 893
gmemon Avatar asked Jun 07 '12 04:06

gmemon


People also ask

Is my device CUDA capable?

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.

What is CUDA capability?

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

What (): CUDA error no CUDA capable device is detected?

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.

Which GPU can run CUDA?

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.


1 Answers

There are several things you can check to fix that error:

  1. Make sure that your /dev/nvidia*'s permission is 666 (crw-rw-rw-) and owner root:root

  2. If you installed the SDK using sudo, then you may need to change to root first to execute the code

  3. Make sure you've installed the compatible NVIDIA's driver available in CUDA zone for your CUDA Toolkit

like image 98
ardiyu07 Avatar answered Oct 06 '22 17:10

ardiyu07