Re: cl_out_of_resources in loop
Posted by
Wade Walker on
May 23, 2014; 3:14pm
URL: https://forum.jogamp.org/cl-out-of-resources-in-loop-tp4032369p4032380.html
manuelnOOb wrote
I know where leaking is from (in initGpu), but I cannot figure out why this happens.
I mean, exactly which OpenCL function returns CL_OUT_OF_RESOURCES? Your initGpu() function calls seven or so different OpenCL functions, and each one could have a different reason for failing. You need to individually check the return codes for *every* OpenCL function or it'll be impossible to find out what's going wrong.