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
WorkInfo
struct WorkInfo
Descriptor for one output tile assigned to a thread block.
Carries the (m, n) tile coordinates in the output matrix, the starting K-tile index for split-K kernels, the number of K tiles to process, and a validity flag indicating whether the tile falls within the problem bounds.
Fieldsβ
- βm (
UInt32): - βn (
UInt32): - βk_start (
UInt32): - βnum_k_tiles (
UInt32): - βis_valid_tile (
Bool):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
comptime membersβ
INVALID_WORK_INFOβ
comptime INVALID_WORK_INFO = WorkInfo(UInt32(0), UInt32(0), UInt32(0), UInt32(0), False)
Methodsβ
__init__β
def __init__() -> Self
is_validβ
is_final_splitβ
get_k_startβ
write_toβ
def write_to(self, mut writer: T)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!