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

WorkInfo

struct WorkInfo

Describes a single output tile's work assignment.

Holds the (m, n) coordinates of the tile in the output matrix, the starting k index for the MMA accumulation, and a flag indicating whether the tile is in-bounds.

Fields​

  • ​m (UInt32):
  • ​n (UInt32):
  • ​k_start (UInt32):
  • ​is_valid_tile (Bool):

Implemented traits​

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

Methods​

is_valid​

def is_valid(self) -> Bool

Returns:

Bool

coord​

def coord(self) -> Tuple[Int, Int]

Get (m, n) tile coordinates as a tuple.

Returns:

Tuple[Int, Int]

write_to​

def write_to(self, mut writer: T)

Was this page helpful?