Returning a single value from kernel!

Hi!

In order to return a single value (float or int) from the kernel, is it necessary to use buffers (clCreateBuffer, clEnqueReadBuffer) or is there some other way?

Thanks!
Atmapuri

That would be the most obvious way. You could write to an image instead, but that would hardly be any simpler.