warp.tile_stack_count#
- warp.tile_stack_count(s: Any) int#
Return the current number of elements in a tile stack.
May be called by one thread or from divergent control flow. The value is uniform across the block and always lies in
[0, capacity]. Call it only after every thread has completed the same preceding push, pop, or clear.- Parameters:
s – The tile stack, from
tile_stack()- Returns:
The current number of elements in the stack.
See
tile_stack()for a usage example.