IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo module

legacy_tile_traits

Interim tensor-argument traits for tile-based epilogue fusion.

TODO(GEX-4340): These traits are a stopgap. They replace the tile IOSpecs of the tile-fused kernels until the tile epilogue interface of GEX-4467 replaces them, and they are deleted then. The graph compiler accepts them only on a fixed list of kernel registrations, so do not use them in a new kernel.

Each lane has two traits, as StoreAccess and Storable do. The execute signature names the first one, which has no methods. The kernel body asserts the second one, which adds the method the kernel calls:

  • Tile store: _LegacyTileStoreAccess / _LegacyTileStorable. store runs the whole epilogue on one tile, including the write. The argument does not conform to TileTensorable.
  • Tile compute: _LegacyTileComputeOutput / _LegacyTileComputable. compute transforms one tile and returns it; the kernel stores the result through to_tile_tensor. The signature must also bind TileTensorable.

Each capability also gives the parts of the argument, for a kernel whose launch cannot take the argument as one value: tile_fusion() returns the generated fusion struct, and storage() returns the output of the store lane. That kernel launches the parts separately and builds its consumer again on the device. A kernel that calls store or compute does not use them.

Was this page helpful?