Ask Your Question

Revision history [back]

OpenCV Error: Gpu API call (invalid device function) in call

I use

Device 0: "GeForce 820M" 2048Mb, sm_21, 96 cores, Driver/Runtime ver.7.0/7.0

Run Cuda 7.0

OpenCV 2.4.9 compiled with CUDA

OS : Ubuntu 14.04

Now I am tried compiling an example from online http://www.robesafe.com/personal/pablo.alcantarilla/code/cuda_flow_1_0.tar.gz

And I compiled it as instructions provided by the ReadMe. File and now when i run ./farneback .video

I get this output with error :

sriram@sriram-X550LD:~/Documents/cuda_flow/build$ ./farneback_flow ../video.avi Device 0: "GeForce 820M" 2048Mb, sm_21, 96 cores, Driver/Runtime ver.7.0/7.0 Frame Number: 1 Time Dense Flow: 0 Time Visualization: 0

OpenCV Error: Gpu API call (invalid device function) in call, file /home/sriram/Documents/opencv-2.4.9/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp, line 361 terminate called after throwing an instance of 'cv::Exception' what(): /home/sriram/Documents/opencv-2.4.9/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp:361: error: (-217) invalid device function in function call

Aborted (core dumped)

===========================================

Need some help to understand