clSetKernelArg in loop CL_OUT_OF_RESSOURCES


I have to pass kernel arguments in a loop.

for (…)

//running the kernel



after a while, clWaitForEvents return CL_OUT_OF_RESSOURCES on windows.
It works just fine on mac and linux.

I supposed a driver problem, even with the lastest one!

Does someone else had that kind of problem?


Is it possible that you are forgetting to release some resources in that loop? For example, did you remember to call clReleaseEvent() for those events you waited for?

Yes the event is released, but after a quick check it seems that it is eventualy a timeout problem…