View Full Version : clEnqueueReadBuffer gives the error CL_OUT_OF_RESOURCES -

12-11-2012, 12:16 PM
hi i have a problem with clEnqueueReadBuffer gives the error CL_OUT_OF_RESOURCES -5.
I explain: I developped a code meshing of point cloud data in GPGPU using OpenCL SDK cuda5 in the GPGPU card is a Tesla C2070, it works for a number of point, when I increase the number Point, gives me an error CL_OuT_OF_RESSOURCES at clEnqueueReadBuffer, that is to say when I want to read the GPGPU memory, could you help me with this problem.
thank you :P .

12-12-2012, 04:59 AM
Have you checked the availability of your device?

5.1 (Unavailable devices)
o If a device(s) becomes unavailable after a context and command-queues that use
this device(s) have been created and commands have been queued to them, the
implementation will fail with the CL_OUT_OF_RESOURCES error for further API
calls. The state of the commands enqueued so far is left undefined.

The application should destroy the objects associated with such a context and
re-query the available device list.

From CUDA OpenCL_Implementation_Notes.txt

12-23-2012, 05:46 AM
Hi bajil, I have had the same inexplicable error on a perfectly valid clEnqueueReadBuffer call before on my GeForce GTX 560 Ti. I have always found that it was as a result of one of my kernels having a bug, normally an out-of-bounds memory access.

01-08-2013, 06:39 AM
correct. That will kill the device on an invalid mem access, which will follow in an out of resources i think.