I could not find a way to query the actual amount of GPU memory used. Is there a way to get this informations from openCL. All I found was the overall maximum global memory available. What I want to know is the free global memory or the used global memory.
Or is there only the solution to wait until a query returns CL_OUT_OF_RESOURCES?