IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 struct

ThreadInfo

struct ThreadInfo

Thread identification within the warp group.

Fields​

  • ​warp_id (Int):
  • ​lane_id (Int):
  • ​lane_row (UInt32):
  • ​lane_col (UInt32):

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDeletable, Movable, RegisterPassable, TrivialRegisterPassable

Methods​

__init__​

def __init__(warp_id: Int, lane_id: Int, lane_row: UInt32, lane_col: UInt32) -> Self

from_warp_group_idx​

static def from_warp_group_idx(warp_group_thread_idx: Int) -> Self

Create ThreadInfo from a warp group thread index.

Args:

  • ​warp_group_thread_idx (Int): Thread index within the warp group.

Returns:

Self: ThreadInfo struct with computed warp_id, lane_id, lane_row, and lane_col.