# deviceQuery

**URL:** <https://forums.developer.nvidia.com/t/devicequery/173672>\
**Category:** CUDA Programming and Performance\
**Created:** [March 30, 2021, 1:39am UTC](https://forums.developer.nvidia.com/t/devicequery/173672 "2021-03-30T01:39:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grsabourin](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@grsabourin](https://forums.developer.nvidia.com/u/grsabourin)\
**Post date:** [March 30, 2021, 1:39am UTC](https://forums.developer.nvidia.com/t/devicequery/173672/1 "2021-03-30T01:39:14Z")

</div>

I’m working on openCV software using CUDA function. I’m struggling having it works on the GPU. In the way to solve the issue I built some demo software coming from CUDA installation. One of these programs was deviceQuery (pretty simple). Finally, I also tried prebuilt version of the same program. For all my tries, I got the following error.

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

cudaGetDeviceCount returned 3  
→ initialization error  
Result = FAIL

What is the source of this error ?

Thank you
