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

asked 2015-04-09 05:15:55 -0600

sriram gravatar image

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/pabl...

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

edit retag flag offensive close merge delete

Comments

Hi, I am having the same error with sm=5.0 and gtx 750ti. Were you able to find a solution?

Badi8beach gravatar imageBadi8beach ( 2015-08-06 14:09:34 -0600 )edit

Hi, were you able to resolve this issue for OpenCV Error: Gpu API call?

heytheres gravatar imageheytheres ( 2016-02-22 09:28:26 -0600 )edit