IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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_smallM_ceildiv

def swapAB_smallM_ceildiv[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 < 41 range with BN = ceildiv(m, 8) * 8 pattern.

Pattern: - BN = ceildiv(m, 8) * 8 (rounds up to next multiple of 8) - stages = 12, cluster = (1,1,1), swapAB = True

Returns:

MatmulConfig[a_type, b_type, c_type, transpose_b]