In CUDA there is an interesting method '__any' and I can't find anything equivalent in OpenCL.
Here is what the documentation state :
int __any(int predicate);
"evaluates predicate for all threads of the warp and returns non-zero if and only if predicate evaluates to non-zero for any of them."
But it is difficult to have something equivalent in OpenCL ?