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
TMAStoreCoords
struct TMAStoreCoords[epc: EpilogueConfig, c_smem_shape0: Int, stage: Int, batched: Bool = False]
TMA store coordinates and warp election for SM100 epilogue.
When batched=True, includes a batch coordinate for 3D TMA stores.
Fieldsβ
- βcoord_m (
Int): - βcoord_n (
Int): - βcoord_b (
Int): - βelect_one_warp (
Bool): - βc_smem_coord_m (
Int):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
BMβ
comptime BM = epc.BM
BNβ
comptime BN = epc.BN
CG1_TMA_BMβ
comptime CG1_TMA_BM = c_smem_shape0
CG2_TMA_BMβ
comptime CG2_TMA_BM = c_smem_shape0 if (epc == Int(256)) else epc.BM
cta_groupβ
comptime cta_group = epc.cta_group
MMA_Mβ
comptime MMA_M = epc.MMA_M
MMA_Nβ
comptime MMA_N = epc.MMA_N
stage_n_offsetβ
comptime stage_n_offset = (stage * epc)
stageNβ
comptime stageN = epc.stageN
TMA_BMβ
comptime TMA_BM = c_smem_shape0 if (eq epc.MMA_M, 256) else epc.BM if (epc == Int(2)) else TMAStoreCoords[epc, c_smem_shape0, stage, batched].CG1_TMA_BM
Methodsβ
__init__β
def __init__(c_coord: Tuple[UInt32, UInt32], warp_id: UInt32) -> Self
Compute TMA store coordinates from 2D tile coords and warp ID.
def __init__(c_coord: Tuple[UInt32, UInt32, UInt32], warp_id: UInt32) -> Self
Compute TMA store coordinates from 3D tile coords and warp ID.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!