OpenCV的错误:没有GPU的支持(库不支持CUDA编译) [英] Opencv Error: no GPU support (library is compiled without CUDA support)

查看:2850
本文介绍了OpenCV的错误:没有GPU的支持(库不支持CUDA编译)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想工作,OpenCV的一些图像处理任务上与GPU CUDA。我使用Ubuntu。我安装我的两个opencv的产品和CUDA没有问题,我相信这一点。然而,当我试图在Eclipse运行示例code,我得到一个错误:

I am trying to work some image-process tasks with opencv on GPU with CUDA. I am using ubuntu. I setup my two products Opencv and Cuda without a problem, I am sure about that. However, when I attempt to run sampleCOde in eclipse, I have get an error:

OpenCV的错误:没有GPU的支持(该库不支持CUDA编译)在mallocPitch,文件/home/muad/Source/OpenCV-2.4.2/modules/core/src/gpumat.cpp ,线路749

我重拍我的OpenCV的,但我还是明白了。

I remade my opencv, but I still get that.

推荐答案

如文档中所述,您必须使用CMake的构建OpenCV的,并设置标志WITH_CUDA = ON。然后,你将获得全功能的OpenCV的GPU模块。否则,模块仍在建的,但您收到与CV_GpuNotSupported例外。

As stated in the documentation, you have to build OpenCV using CMake and set the flag WITH_CUDA=ON. Then you will get the full-featured OpenCV GPU module. Otherwise the module is still built, but you recieve an exception with CV_GpuNotSupported.

有关详细信息,在这里读到:<一href=\"http://docs.opencv.org/modules/gpu/doc/introduction.html\">http://docs.opencv.org/modules/gpu/doc/introduction.html

For further information, read here: http://docs.opencv.org/modules/gpu/doc/introduction.html

这篇关于OpenCV的错误:没有GPU的支持(库不支持CUDA编译)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆