Opencv Error: no GPU support (library is compiled without CUDA support)

后端 未结 3 899
礼貌的吻别
礼貌的吻别 2020-12-19 06:58

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

相关标签:
3条回答
  • 2020-12-19 07:40

    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.

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

    0 讨论(0)
  • 2020-12-19 07:49

    I guess your system path is still set to previous dlls which are not compiled with gpu. You should first change your system path after the rebuilt of opencv.

    0 讨论(0)
  • 2020-12-19 07:54

    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.

    0 讨论(0)
提交回复
热议问题