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
Describes a unit of split-K work for a single output tile.
Holds the output-tile coordinates (m, n), the starting K index and number of K tiles this split covers, and whether the tile is in 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β
is_validβ
is_final_splitβ
def is_final_split(self, k_tiles_per_output_tile: UInt32) -> Bool
Returns whether this split covers the final K tiles of the output tile.
Args:
- βk_tiles_per_output_tile (
UInt32): Total number of K tiles for the output tile.
Returns:
write_toβ
def write_to(self, mut writer: T)
Writes a parenthesized summary of this work info to the given writer.
Args:
- βwriter (
T): Sink the parenthesized(m, n, k_start, is_valid_tile)summary is written to.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!