For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /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,
Deinitable,
ImplicitlyCopyable,
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.