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

attention

Attention struct for RDNA Wave32 MHA kernels (prefill + decode).

TileTensor throughout. Wave32 + 16x16x16 WMMA + wave-cooperative fragments. Constructor surface matches amd_structured/Attention so the dispatcher (nn/attention/gpu/mha.mojo) can branch on _is_amd_rdna() without restructuring its call sites.

comptime values​

RDNA_K_GROUP_SIZE​

comptime RDNA_K_GROUP_SIZE = 1

Structs​