AnsweredAssumed Answered

when to call clReleaseEvent()

Question asked by levyfan on Sep 16, 2012
Latest reply on Sep 17, 2012 by levyfan

cl_event event;

clEnqueueNDRangeKernel(secondaryQueue, ..., 0, NULL, &event);   //kernel1

clEnqueueNDRangeKernel(queue, ..., 1, &event, NULL);                   //kernel2

clReleaseEvent(event);

 

is the code above right?

or we need to release event after kernel2 is completed?

Outcomes