Is it possible to control kernel return an specified value other than CL_SUCESS?

Discussion created by zhuzxy on Aug 18, 2011
Latest reply on Aug 19, 2011 by rick.weber

I don't want to read the result from the GPGPU mem, but only want to know if the calculation has reach a point or not in the kernel. Can I control the kernel to return an specified value? Or get an event about the status after the kernel execute finished? Can anyone give me suggestions on it?