Getting error "The called functionality is disabled for current build or platform in function throw_no_cuda Aborted (core dumped)"

asked 2016-10-27 00:50:36 -0600

lm35 gravatar image

updated 2016-10-27 00:58:43 -0600

I was running the sample code video_reader.cpp from "samples/gpu". Mine is Ubuntu 16.04 with Opencv3.1.0 and with CUDA8.0 enabled. While running the code I got the below error .

OpenCV Error: The function/feature is not implemented (The called functionality is disabled for current build or platform) in throw_no_cuda, file /home/opencv/modules/core/include/opencv2/core/private.cuda.hpp, line 101 terminate called after throwing an instance of 'cv::Exception' what(): /home/opencv/modules/core/include/opencv2/core/private.cuda.hpp:101: error: (-213) The called functionality is disabled for current build or platform in function throw_no_cuda.

is this link explaining the same issue. I doubt because the link refer to an old version of Opencv.

please help.

Below is what I get when i run with 'ltrace'

"_ZN2cv9cudacodec17createVideoReaderERKNS_6StringE(0x7ffe6117e060, 0x7ffe6117e0f0, 0x7ffe6117e0f0, 102OpenCV Error: The function/feature is not implemented (The called functionality is disabled for current build or platform) in throw_no_cuda, file /home/amma/opencv/modules/core/include/opencv2/core/private.cuda.hpp, line 101 '

edit retag flag offensive close merge delete

Comments

Found that this is because Opencv was compiled without WITH_NVCUVID=ON, So again ran cmake with WITH_NVCUVID=ON but got error while running make

lm35 gravatar imagelm35 ( 2016-10-27 07:15:17 -0600 )edit

Got solution refer this link

lm35 gravatar imagelm35 ( 2016-10-28 01:55:00 -0600 )edit