microZEUS
The whole stack, hand-drawn.

◄ Wiki / Graphics

elect / ballot

GPU operations where a group of parallel threads votes or picks a single representative.

On a GPU, many invocations run in lockstep as a subgroup, and subgroup operations let them coordinate. 'Elect' chooses exactly one invocation to do a shared task, while 'ballot' takes a yes/no vote across the group and reports who said what. These primitives enable efficient cooperation without heavier synchronization.

See also