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

mma

RDNA Wave32 WMMA helper for attention kernels.

Wraps the raw mma intrinsic in a parametric per-fragment loop. RDNA WMMA always uses 16-element A/B fragments and 8-element C/D fragments per lane (16x16x16, group_size=1).

Functions

  • rdna_mma: Per-fragment WMMA loop. Derives MMA counts from operand shapes; accumulator indexing is col-major over (M, N): c_idx = m + n*num_m.