WarpMask#

template<int LOGICAL_WARP_THREADS>
unsigned int cub::WarpMask(
unsigned int warp_id,
)#

Returns the warp mask for a warp of LOGICAL_WARP_THREADS threads.

If the number of threads assigned to the virtual warp is not a power of two, it’s assumed that only one virtual warp exists.

Template Parameters:

LOGICAL_WARP_THREADS[optional] The number of threads per “logical” warp (may be less than the number of hardware warp threads).

Parameters:

warp_id – Id of virtual warp within architectural warp