Raistmer

kernel sync via list of events - doesn't work

Discussion created by Raistmer on Feb 2, 2010
Latest reply on Feb 4, 2010 by Raistmer
when I specify event from prev kernel call like this:

err = clEnqueueNDRangeKernel(
cq,
half_temp_range_kernel,
1,
NULL,
globalThreads,
NULL,
1,
&events[1],
&events[0]);
I got unknown error with integer value of -57.

such kernel call passes OK:
err |= clFinish(cq);
err = clEnqueueNDRangeKernel(
cq,
half_temp_range_kernel,
1,
NULL,
globalThreads,
NULL,
0,
NULL,
&events[0]);

What could be wrong with synching via events?

Outcomes