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

testbed_swapAB

Testbed for comparing swapAB vs normal matmul execution.

swapAB is an internal optimization where:

  • A and B operands are swapped inside the kernel
  • The output C tile is transposed on write-out
  • The final result C[M,N] should be identical to the normal kernel

Both kernels compute: C[M,N] = A[M,K] @ B[N,K]^T The swapAB version just does it via: (B @ A^T)^T stored transposed = A @ B^T

Functionsโ€‹