← [ ABORT TO HUD ]
SEQ. 1
SEQ. 2

Warp Matrix Multiply and Accumulate (WMMA) Architecture

💎 Tensor Cores, WMMA & Hardware Acceleration20 min160 BASE XP⌨ HANDS-ON LAB

The Physics of NVIDIA Tensor Cores

Standard CUDA cores execute scalar math (one FMA per clock). Tensor Cores execute entire matrix multiplications per clock cycle at the warp level (32 threads). In an Hopper (H100) or Blackwell (B200) GPU, a single Tensor Core computes $D = A imes B + C$ where $A$ and $B$ are $16 imes 16$ matrices.

WMMA Fragment Geometry

All 32 threads in a warp cooperate to hold the matrix fragments in their register files:

// CUDA PTX WMMA instruction format accessed via Rust FFI
// wmma.mma.sync.aligned.m16n16k16.row.col.f32.f16.f16.f32
// Computes 16x16x16 GEMM chunk in a single hardware cycle!

Accessing Tensor Cores from Rust directly or through cuBLAS achieves up to 989 TFLOPS of FP16/FP8 compute on H100 SXM5, compared to ~67 TFLOPS on standard CUDA FP32 cores.

⌨ HANDS-ON LABCompile and Launch WMMA Tensor Core GEMM Kernel
⭐ +190 XP

Compile an FP16 WMMA warp-level matrix multiplication kernel and measure TFLOPS on NVIDIA Tensor Cores.

1Compile the WMMA matrix multiplication kernel with nvcc sm_90 target.
2Execute WMMA GEMM benchmark from Rust runtime to measure Tensor Core TFLOPS.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 2 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 1
How many threads collaborate to execute a WMMA (Warp Matrix Multiply and Accumulate) instruction?
32 threads (one complete warp)
1 thread (scalar execution)
1024 threads (one complete block)
8 threads (half-warp)