Mojo module
tile
Implementations of tile functions.
comptime values
BinaryTile1DTileUnitFunc
comptime BinaryTile1DTileUnitFunc = fn[width: Int](Int, Int) capturing -> None
Signature of a tiled function that performs some work with a dynamic tile size and a secondary static tile size.
Dynamic1DTileUnitFunc
comptime Dynamic1DTileUnitFunc = fn(Int, Int) capturing -> None
Signature of a 1D tiled function with dynamic tile size.
The function takes a dynamic tile size and an offset argument,
i.e. func(offset: Int, tile_size: Int).
Static1DTileUnitFunc
comptime Static1DTileUnitFunc = fn[width: Int](Int) capturing -> None
Signature of a 1D tiled function with static tile size.
The function takes a static tile size parameter and an offset argument,
i.e. func[tile_size: Int](offset: Int).
Static2DTileUnitFunc
comptime Static2DTileUnitFunc = fn[tile_x: Int, tile_y: Int](Int, Int) capturing -> None
Signature of a 2D tiled function with static tile size.
The function takes static tile size parameters and offset arguments, i.e.
func[tile_size_x: Int, tile_size_y: Int](offset_x: Int, offset_y: Int).
Functions
-
tile: A generator that launches work groups in specified list of tile sizes.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!