Fuxianjun

How to release Physical Memory?

Discussion created by Fuxianjun on Jul 23, 2010
Latest reply on Jul 27, 2010 by psath
Excute kernel in a loop Physical Memory usage getting more and more.

After clSetKernelArg() method, I need to excute the same kernel in a loop,but Physical Memory usage getting more and more, I think it is memory leak, can anyone tell me how to resolve. Thanks !

for(int i=0;i<10000000;i++) { cl_int errs = clEnqueueNDRangeKernel(queue, kernel, 1, 0, &work_size, 0, 0, 0, 0); }

Outcomes