PDA

View Full Version : Returning a single value from kernel!



Atmapuri
05-10-2011, 02:09 AM
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

ibbles
05-10-2011, 04:08 AM
That would be the most obvious way. You could write to an image instead, but that would hardly be any simpler.