clSetKernelArg in loop CL_OUT_OF_RESSOURCES

Hello,

I have to pass kernel arguments in a loop.

for (…)
{
clSetKernelArg(…)

//running the kernel

 clWaitForEvents(...)

}

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?

Sincerely

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…