CUDA SDK examples cause various errors in multi-gpu system

I have a Dell Precision rack running Ubuntu Precise and having two Tesla C2075 plus Quadro 600, which is a display device. I recently finished some tests on my desktop computer and am now trying to transfer stuff to a workstation.

Since CUDA was not present, I installed it in accordance with this guide and adapted the Makefiles SDK in accordance with these recommendations .

Now I am faced with the fact that not a single sample (I have not tested how 10 different) works. These are the errors I get:


[deviceQuery] starting... ./deviceQuery Starting... CUDA Device Query (Runtime API) version (CUDART static linking) cudaGetDeviceCount returned 10 -> invalid device ordinal [deviceQuery] test results... FAILED > exiting in 3 seconds: 3...2...1...done! 

 [MonteCarloMultiGPU] starting... CUDA error at MonteCarloMultiGPU.cpp:235 code=23510 (cudaErrorInvalidDevice) "cudaGetDeviceCount(&GPU_N)"MonteCarloMultiGPU ================== Parallelization method = threaded Problem scaling = weak Number of GPUs = 0 Total number of options = 0 Number of paths = 262144 main(): generating input data... main(): starting 0 host threads... Floating point exception (core dumped) 

 [reduction] starting... reduction.cpp(124) : cudaSafeCallNoSync() Runtime API error 10 : invalid device ordinal. 

 [simplePrintf] starting... simplePrintf.cu(193) : CUDA Runtime API error 10: invalid device ordinal. 

As you can see, most errors indicate a problem with calling cudaGetDeviceCount, which returns error code 10. According to the manual, the problem is this:

 cudaErrorInvalidDevice: This indicates that the device ordinal supplied by the user does not correspond to a valid CUDA device. 

Unfortunately, the only solution I could find was to check the device’s power connectors. I did it, and there was nothing wrong with that. Restarting the workstation also does not help.

I will be glad to provide more detailed information about my configuration. Just leave a comment!

+7
source share
1 answer

Due to comments on my original question, I was able to find a solution. I read this guide to find out how to properly configure rc.local (don't forget to chmod your script).

+2
source

All Articles