cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

spectral
Adept II

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

Hi,

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 ?



0 Likes
12 Replies