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
tiled_matmul_run
def tiled_matmul_run[config: KernelConfig, transpose_b: Bool, b_packed: Bool, simd_size: Int, elementwise_epilogue_enabled: Bool, kernel_id: InnerKernelID, algorithm: InnerMatmulKernel, ElementwiseEpilogueFnType: ImplicitlyCopyable & def[.origin._mlir_origin2x: LITImmutOrigin, .dtype2x1: DType, .LayoutType2x2: TensorLayout, .origin2x3: ImmutOrigin, .Storage2x4: TensorStorage, .linear_idx_type2x5: DType, .element_size2x6: Int](GemmShape, GemmShape, TileTensor[dtype, LayoutType, origin, Storage=Storage, linear_idx_type=linear_idx_type, element_size=element_size]) -> None](alg: algorithm, c: TileTensor[Storage=c.Storage, linear_idx_type=c.linear_idx_type, element_size=c.element_size], a: TileTensor[Storage=a.Storage, linear_idx_type=a.linear_idx_type, element_size=a.element_size], b: TileTensor[Storage=b.Storage, linear_idx_type=b.linear_idx_type, element_size=b.element_size], elementwise_epilogue_fn: ElementwiseEpilogueFnType, global_tile_shape: GemmShape, global_tile_offset: GemmShape)``
Interface function to run tiled matmul on a given sub-tile.
Args:
- βalg (
algorithm): InnerMatmulKernel algorithm for microkernel. - βc (
TileTensor[Storage=c.Storage, linear_idx_type=c.linear_idx_type, element_size=c.element_size]): Pre-allocated buffer space for result. - βa (
TileTensor[Storage=a.Storage, linear_idx_type=a.linear_idx_type, element_size=a.element_size]): Operand A of the matmul. - βb (
TileTensor[Storage=b.Storage, linear_idx_type=b.linear_idx_type, element_size=b.element_size]): Operand B of the mamtul. - βelementwise_epilogue_fn (
ElementwiseEpilogueFnType): The elementwise epilogue function. - βglobal_tile_shape (
GemmShape): Tile shape this call will process. - βglobal_tile_offset (
GemmShape): Tile offset on the original buffer.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!