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

dispatch_amd_matmul_by_block_shape

def dispatch_amd_matmul_by_block_shape[c_type: DType, a_type: DType, b_type: DType, transpose_b: Bool, N: Int, K: Int, default_block_tile_shape: IndexList[Int(3)], use_heuristic: Bool = False, *, LauncherFnType: ImplicitlyCopyable & def[config: MatmulConfig[a_type, b_type, c_type, transpose_b]]() raises -> None](launcher_fn: LauncherFnType, M: Int, ctx: DeviceContext) where (eq LauncherFnType.a_type, a_type) where (eq LauncherFnType.b_type, b_type) where (eq LauncherFnType.c_type, c_type) where (eq LauncherFnType.transpose_b, transpose_b)

Dispatches to the best kernel configuration based on runtime M dimension.