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

asked 2019-06-10 14:07:15 -0500

hua gravatar image

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?

edit retag flag offensive close merge delete