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

tmem

Tensor Memory (TMEM) abstractions for SM100 Blackwell GPUs.

TMEM is dedicated memory for MMA accumulators, separate from registers and shared memory. This module provides type-safe abstractions:

  • TmemAllocation: Manages TMEM lifecycle (alloc/dealloc)
  • TmemTensor: Layout-parameterized typed view over TMEM accumulators
  • TmemStage: Represents a pipeline stage for accumulator buffering
  • TmemAddress: Simple address wrapper for TMEM load operations

comptime values​

TMEM_LOWER_ROW_OFFSET​

comptime TMEM_LOWER_ROW_OFFSET = UInt32(1048576)

Structs​