Opencv error: no GPU support (library compiled without CUDA support)

I am trying to perform some image processing tasks using opencv on a GPU with CUDA. I am using ubuntu. I install my two products Opencv and Cuda without any problems, I am sure of that. However, when I try to run sampleCOde in eclipse, I get an error:

OpenCV Error: No GPU support (The library is compiled without CUDA support) in mallocPitch, file /home/muad/Source/OpenCV-2.4.2/modules/core/src/gpumat.cpp, line 749

I redid my opencv, but I still understand that.

+6
source share
3 answers

As stated in the documentation, you must create OpenCV using CMake and set the WITH_CUDA = ON flag. Then you get a fully functional OpenCV GPU module. Otherwise, the module will still be built, but you will get an exception with CV_GpuNotSupported.

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

+5
source

I had the same problem. I fixed it by copying the opencv_core243d.dll file from E:\opencv\build\gpu\x64\vc10\lib to the working directory using .exe. I don’t know why this matters, but it was so.

+2
source

I assume that your system path is still installed on previous DLLs that were not compiled with gpu. You must first change your system path after restoring opencv.

+1
source

Source: https://habr.com/ru/post/927821/


All Articles