Ask Your Question

Unknown Error during CUDA GPU Matching

asked 2015-03-19 08:02:33 -0500

MD1989 gravatar image


I'm trying to run the example file "surf_keypoint_matcher.cpp". I've downloaded and compiled the latest version of both 'opencv' and 'opencv_contrib' for Windows and VS2010.

The application compiles and runs the feature detection fine. However when it attempts to run the brutefore matcher (in the lines of code shown below), I get a graphic's card crash and an Unknown Error.

65:  Ptr<cv::cuda::DescriptorMatcher> matcher = 
66:  vector<DMatch> matches;    
67:  matcher->match(descriptors1GPU, descriptors2GPU, matches);

The error I'm seeing is:

OpenCV Error: Gpu API call (unknown error) in cv::cuda::device::bf_match::matchUnrolledCached, file  C:/....../cudafeatures2d/src/cuda/, line 183

I'm currently in the process of trying a bunch of different NVIDIA drivers to see if that fixes it, however I've had no luck so far. I'm running a Quadro 2000 and CUDA 6.5.

Thanks for your help!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-19 08:54:16 -0500

MD1989 gravatar image

updated 2015-03-19 08:56:14 -0500

It seems the images I'm trying to run this on are generating >25,000 key points - which may be causing some kind of stack issue? When I try it with images generating ~18k keypoints the issue seems to vanish.

How can I limit the number of keypoints being generated?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-03-19 08:02:33 -0500

Seen: 285 times

Last updated: Mar 19 '15