compiling opencv with gpu cuda support

风流意气都作罢 提交于 2019-12-11 08:22:35

问题


I am using OpenCV 2.3.1 with CUDA 4.0.

I have installed the OpenCV 2.3.1 by CMAKE with WITH_CUDA flag on. And then I compiled the OpenCV solution in release and debug mode, but still when I used the getCudaEnabledDevice function of CV::GPU it is returning 0. This means it is not detecting the CUDA enabled device.

It seems that I have done everything right, still what is happening??

Can Anybody suggest where can be the problem now??.

Thanks in advance.


回答1:


I had the same problem. I fixed it by copying opencv_core243d.dll from E:\opencv\build\gpu\x64\vc10\lib folder to the work directory with the .exe.
Don't know why that should matter but it did.

Using cuda 5.0
VS2010 express
win 7 x64



来源:https://stackoverflow.com/questions/10613809/compiling-opencv-with-gpu-cuda-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!