OpenCV Error: GPU API call <out of memory> in gpumat.cpp

asked 2013-08-30 16:55:58 -0600

darkmoor gravatar image

updated 2013-08-30 16:56:47 -0600

Hello I have build an VS 2010 project in which I am trying to run a gpu algorith. I have no build or link erros but when I am trying to run the exe returns the following error:

OpenCV Error: GPU API call (out of memory) in unknown function, file ../../../modules\core\src\gpumat.cpp line 1415 error: ......\modules\core\src\gpumat.cpp:1415: error: <-217> out of memory

Also I have added the new dlls after the build with cuda support to the debug file.

I am using Win 7, CUDA toolkit 5.5 and OpenCV 2.4.6.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

Out of memory means that you don't have enough memory to allocate data. What card and what algorithm do you use? Check that you don't have memory leaks.

Vladislav Vinogradov gravatar imageVladislav Vinogradov ( 2013-08-31 01:55:25 -0600 )edit

Thanks for answering. I have GeForce 9600 GT. I am using an algorithm for disparity estimation and I am testing it in two images of size 640x480. Also I am using the main that the opencv offers in samples folder.

darkmoor gravatar imagedarkmoor ( 2013-08-31 16:43:38 -0600 )edit

I run the algorithm with a smaller image (384x288 ) and it worked

darkmoor gravatar imagedarkmoor ( 2013-08-31 17:00:06 -0600 )edit