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

matmul_swiglu_dispatch_sm100

def matmul_swiglu_dispatch_sm100[config: FusedSwiGLUMatmulConfig[config.a_type, config.b_type, config.c_type], pdl_level: PDLLevel = PDLLevel(Int(0))](c_out: TileTensor[DType.bfloat16, address_space=c_out.address_space, linear_idx_type=c_out.linear_idx_type], a: TileTensor[DType.bfloat16, Storage=a.Storage, address_space=a.address_space, linear_idx_type=a.linear_idx_type], b: TileTensor[DType.bfloat16, Storage=b.Storage, address_space=b.address_space, linear_idx_type=b.linear_idx_type], ctx: DeviceContext, bias_ptr: OptionalReg[Pointer[BFloat16, ImmutAnyOrigin, _safe=False]] = None)

Dispatch fused GEMM+SwiGLU to SM100 kernel with given config.

Parameters:

  • ​config (FusedSwiGLUMatmulConfig[config.a_type, config.b_type, config.c_type]): Fully specialized FusedSwiGLUMatmulConfig carrying the MMA shape, cluster shape, swizzle modes, pipeline stage counts, AB_swapped orientation, and use_bias flag used to specialize the kernel.
  • ​pdl_level (PDLLevel): Programmatic Dependency Launch level controlling inter-grid overlap on the launch (defaults to PDLLevel.OFF).

Args:

Was this page helpful?