Ask Your Question
0

OpenCV Error: Gpu API call in superres sample code

asked 2013-06-26 12:03:29 -0600

Arrigo gravatar image

updated 2013-06-26 12:11:26 -0600

Vladislav Vinogradov gravatar image

When I run superres_test.cpp from OpenCV 2.4.5 under VS 2010, Windows 8, I get this error:

Input           : C:test.avi [560 x 420]
Scale factor    : 2
Iterations      : 180
Temporal radius : 4
Optical Flow    : farneback
Mode            : GPU
[  0] : OpenCV Error: Gpu API call (invalid device function ) in unknown function, file c:\opencv-2.4.5\src\modules\gpu\include\opencv2\gpu\device\detail/transform_detail.hpp, line 361
OpenCV Error: Gpu API call

I am running this on a laptop with a NVIDIA Quadro K2000M GPU (capability 3.0)

Any ideas on how to debug this?

Thanks,

-Arrigo

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-26 12:14:55 -0600

Vladislav Vinogradov gravatar image

It seems like you compiled OpenCV gpu module for wrong compute capability. Check CMake variable CUDA_ARCH_BIN, it must contain "3.0".

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-26 12:03:29 -0600

Seen: 1,215 times

Last updated: Jun 26 '13