Help with reading back single value

Discussion created by ryta1203 on Apr 20, 2011
Latest reply on Apr 20, 2011 by ryta1203

I send a single int to the kernel.

Every thread either updates that int with a '1' or doesn't update the int at all.

I then want to read the int back.

1. Is this possible in OpenCL? (I know it's possible in CUDA)

2. Is there a special way to read back one int that I'm unaware of?

Thanks in advance.