编译opencv与gpu cuda支持 [英] compiling opencv with gpu cuda support
问题描述
我使用OpenCV 2.3.1与CUDA 4.0。
我已经安装了OpenCV 2.3.1通过CMAKE with WITH_CUDA标志。然后我编译的OpenCV解决方案在发布和调试模式,但仍然是当我使用 getCudaEnabledDevice
函数 CV :: GPU
它返回0.这意味着它没有检测到CUDA启用的设备。
似乎我做了一切正确,仍然发生了什么?? <
任何人都可以建议现在的问题在哪里。
$ b
我有同样的问题。我修复它
将opencv_core243d.dll从 E:\opencv\build\gpu\x64\vc10\lib
文件夹复制到工作目录与.exe。
不知道为什么应该重要,但它是。
使用cuda 5.0
VS2010表达
win 7 x64
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.
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
这篇关于编译opencv与gpu cuda支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!