Mojo struct
FragmentCoords
@register_passable(trivial)
struct FragmentCoords[stageN: Int, repeats: Int]
Fragment element coordinates for tcgen05 16x256b matrix layout.
Fields
- top_upper (
StaticTuple[UInt32, 2]): - bottom_upper (
StaticTuple[UInt32, 2]): - top_lower (
StaticTuple[UInt32, 2]): - bottom_lower (
StaticTuple[UInt32, 2]):
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable
comptime members
__copyinit__is_trivial
comptime __copyinit__is_trivial = True
__del__is_trivial
comptime __del__is_trivial = True
__moveinit__is_trivial
comptime __moveinit__is_trivial = True
load_width
comptime load_width = 2
threads_per_row
comptime threads_per_row = ((stageN // repeats) // 2)
Methods
__init__
__init__(lane_id: UInt32) -> Self
Compute (row, col) for each fragment position from lane ID.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!