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 function
swapAB_largeM_clustered
def swapAB_largeM_clustered[a_type: DType, b_type: DType, c_type: DType, transpose_b: Bool = True](m: Int, pdl_level: PDLLevel) -> MatmulConfig[a_type, b_type, c_type, transpose_b]
Config for m in [129, 240] range with cluster=(2,1,1).
Pattern: - BN = 72 + ((m - 129) // 16) * 8 - Stages: 12 for m<=160, 10 for m<=224, 8 otherwise - cluster = (2,1,1), k_group_size = 2, swapAB = True
Parameters:
- βa_type (
DType): ElementDTypeof the A input matrix. - βb_type (
DType): ElementDTypeof the B input matrix. - βc_type (
DType): ElementDTypeof the output C matrix. - βtranspose_b (
Bool): WhetherBis stored transposed (K-major layout) (defaults toTrue).
Args:
- βm (
Int): The M dimension of the matmul, in the range [129, 240]. - βpdl_level (
PDLLevel): Programmatic dependent launch level for grid controls.
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!