About warp voting function

cuda, gpgpu, gpu

Solution

`__ballot` is used in CUDA-histogram and in CUDA NPP library for quick generation of bitmasks, and combining it with `__popc` intrinsic to make a very efficient implementation of boolean reduction.

`__all` and `__any` was used in reduction before introduction of `__ballot`, though I can not think of any other use of them.

Problem

The CUDA programming guide introduced the concept of warp vote function, "_all", "_any" and "__ballot". My question is: what applications will use these 3 functions?

Original source