For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
warp_idx_to_role
def warp_idx_to_role(warp_idx: UInt32) -> WarpRole
Maps a global warp index to its WarpRole based on warpgroup assignment.
Args:
- warp_idx (
UInt32): Global warp index within the CTA, where each warpgroup spans four consecutive warps. Determines the specialized role (softmax, correction, MMA, load, or FP8-to-BF16 conversion) viawarp_idx // 4for warpgroup assignment and direct index checks for warps 12 and above.
Returns:
WarpRole
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!