Problem with running OpenCV with GPU support..

asked 2012-11-01 09:37:31 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hi All,

OpenCV Error: No GPU support (The library is compiled without GPU support) in throw_nogpu, file /tmp/buildd/ros-fuerte-opencv2-2.4.2-0precise-20120908-1632/modules/gpu/src/precomp.hpp, line 113 terminate called after throwing an instance of 'cv::Exception' what(): /tmp/buildd/ros-fuerte-opencv2-2.4.2-0precise-20120908-1632/modules/gpu/src/precomp.hpp:113: error: (-216) The library is compiled without GPU support in function throw_nogpu

I built OpenCV WITH_CUDA on. It was built succesfully.I suppose there is some conflict between openCV from ROS and my installed ROS. I also tried to run the example after it built the binaries called ./opencv_test_gpu. It said me Ok for most of the test untill it stopped with an error as below


OS: Linux 32 CUDA Driver version: 5000 CUDA Runtime version: 4020 CUDA device count: 1

Device 0: Name: GeForce 8600 GTS Compute capability version: 1.1 terminate called after throwing an instance of 'cv::Exception' what(): /home/subhasis/OpenCV-2.4.2/modules/core/src/gpumat.cpp:312: error: (-217) out of memory in function queryMemory

Segmentation fault (core dumped)

I would be greatful if someone suggests me a solution for the problem.

edit retag flag offensive close merge delete


Make sure you have one (and only one!) cdua sdk installed and build opencv from source. We hit some weird errors because we had parts of an old cuda left behind

mgb gravatar imagemgb ( 2012-11-02 18:18:07 -0500 )edit