AnsweredAssumed Answered

Useful method in CUDA '__any' : no equivalent in OpenCL ?

Question asked by spectral on Nov 3, 2011
Latest reply on Jun 10, 2013 by realhet


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 ?