Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I got out of memory error when loading 4096*4096 image to my OpenCV_CUDA program.

This is the error message I got when loading and performing some image processing technique on the image and it exits the half of the program with the following error.

 OpenCV(3.4.1) Error: Gpu API call (out of memory) in <unnamed>::DefaultAllocator::allocate, file C:/opencv/3.4.1/Opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu, line 116

How do I can free memory for this case?