# deviceQuery

**URL:** <https://forums.developer.nvidia.com/t/devicequery/173479>\
**Category:** CUDA Developer Tools\
**Created:** [March 27, 2021, 2:16am UTC](https://forums.developer.nvidia.com/t/devicequery/173479 "2021-03-27T02:16:37Z")\
**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 27, 2021, 2:16am UTC](https://forums.developer.nvidia.com/t/devicequery/173479/1 "2021-03-27T02:16:37Z")

</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
