Ask Your Question

Opencv 3 compiled with CUDA but GetCudaEnabledDeviceCount always 0

asked 2015-02-03 21:00:28 -0500

vsw gravatar image


I want use CUDA acceleration for my opencv based project.

I have installed latest nvidia drivers, nvidia toolkit, opencv 3 beta with_cuda=on

But getCudaEnabledDeviceCount is always return 0

Please help

Nvidia deviceQuery is here: Compiler output is here:

Best regards Viktor

edit retag flag offensive close merge delete


- sorry didnt read the link correctly -

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-04 03:04:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-07 01:34:10 -0500

vsw gravatar image

updated 2015-02-07 01:57:11 -0500


Opencv 2.4.9 same result.

But if running under root DEVICE DETECTED

Also gcc4.8 not playing with CUDA together. I use gcc4.7

Thank you all. CLOSED.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-02-03 21:00:28 -0500

Seen: 236 times

Last updated: Feb 07 '15