Mojo function
vote
vote(val: Bool) -> UInt32
Creates a 32 bit mask among all threads in the warp, where each bit is set to 1 if the corresponding thread voted True, and 0 otherwise.
This function takes a boolean value signaling if the thread vote.
Args:
- val (
Bool
): The boolean vote.
Returns:
UInt32
: A mask containing the vote of all threads in the warp.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!