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 module

kernel_common

Shared kernel components for SM100 warp-specialized matmul kernels.

This module contains common components used by all SM100 matmul kernel variants:

  • WarpRole: Warp specialization roles for 4-warp kernels (MMA, Load, Scheduler, Epilogue)
  • WarpRole1D1D: Warp specialization roles for 3-warp kernels (MMA, Load, Epilogue)
  • KernelContext: Common kernel state (election vars, CTA coords, masks)
  • Barrier init helpers: compute_input_consumer_count, init_core_barriers, init_clc_barriers
  • _Batched3DLayout / _to_batched_3d: Reshape 2D TileTensor to 3D (batch=1)

comptime values​

MbarPtr​

comptime MbarPtr = UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED]

Structs​

Functions​