IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /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 = Pointer[SharedMemBarrier, MutUntrackedOrigin, address_space=AddressSpace.SHARED]

Structs

  • KernelContext: Shared kernel state: election vars, CTA coords, multicast masks, pipeline states.
  • WarpRole: Warp role identifiers for SM100 warp-specialized kernel.
  • WarpRole1D1D: Warp role for 1D-1D kernels with warp specialization.

Functions