tilelang.rocm.language.gemm_opΒΆ
ROCm dialect of T.gemm: the common GEMM plus ROCm-specific knobs.
FunctionsΒΆ
|
TileLang GEMM operator for ROCm. |
Module ContentsΒΆ
- tilelang.rocm.language.gemm_op.gemm(A, B, C, transpose_A=False, transpose_B=False, policy=GemmWarpPolicy.Square, clear_accum=False, k_pack=1, annotations=None)ΒΆ
TileLang GEMM operator for ROCm.
Same semantics as the common
tilelang.language.gemm_op.gemm().k_packpacks multiple matrix-core operations along K in the MFMA/WMMA lowering (CDNA/RDNA); it is a performance knob with no counterpart on other targets.- Parameters:
A (BufferLikeType, i.e. Buffer | BufferLoad | BufferRegion, or Var) β Input buffer A.
B (BufferLikeType) β Input buffer B.
C (BufferLikeType) β Output buffer C.
transpose_A (bool) β Whether to transpose A. Defaults to False.
transpose_B (bool) β Whether to transpose B. Defaults to False.
policy (GemmWarpPolicy) β GEMM warp partition policy.
clear_accum (bool) β Whether to clear the accumulator.
k_pack (int) β Number of packed matrix cores along K. Must be 1 or 2. Defaults to 1.
annotations (Optional[dict]) β Additional annotations.
- Returns:
A handle to the GEMM operation.
- Return type:
tirx.Call