Inside the
MI300X.
One GPU.
Eight compute dies.
Let's look inside.
Follow a kernel from the package to the lanes that execute it. A guided journey through AMD's chiplet accelerator, with the NVIDIA concepts you already know.
Read the full walkthrough and write a Gluon GEMM [WIP]
Drag the model to orbit. Select a component to inspect it.
A GPU built
from smaller GPUs?
Not quite. Each XCD is a compute chiplet with 38 active CUs and a shared 4 MB L2 cache. Eight XCDs make up MI300X's 304 active CUs.
In SPX mode, the package appears as one GPU device. We launch one grid; the application doesn't have to launch work separately on every chiplet.
An XCD is a physical compute die. It isn't a direct equivalent of a Hopper GPC. H100's compute logic lives on a monolithic GH100 die.
Where a block
gets to work.
A HIP block, also called a workgroup, executes on one CU. Its wavefronts share on-chip resources: registers, execution pipelines, and a 64 KiB scratchpad called LDS.
Scalar instructions handle values common to a wave. Vector instructions operate on per-lane values. Matrix instructions use dedicated matrix pipelines.
Wave-uniform values and control
Per-lane values and arithmetic
64 KiB of software-managed scratchpad
The CU plays the role you associate with an SM. Resource counts and execution organization differ; a CU count is not an SM performance ratio.
Your warp
just got wider.
NVIDIA groups threads into 32-thread warps. CDNA 3 uses 64-thread wavefronts. A 256-thread block becomes four waves instead of eight warps.
The grid on the right is one wave, drawn as 8 × 8 for readability. Select a lane, or mask half the wave to see which lanes participate in a vector instruction.
All lanes are active. This is thread grouping, not a cycle timing model.
A full-wave shuffle reduction starts at offset 32 here. A hardcoded offset of 16 only combines 32 lane contributions into lane 0.
64 lanes.
One matrix tile.
MFMA means Matrix Fused Multiply-Add. An instruction cooperatively computes D = A × B + C, with operands and accumulators distributed across the wave.
This example uses a 16 × 16 × 16 FP16 matrix operation with FP32 accumulation. Inspect a mathematical K slice, or switch to the instruction's actual lane-to-element mapping.
Lane 0: A[0, 0:4], B[0:4, 0], D[0:4, 0]. Ranges exclude the upper endpoint.
v_mfma_f32_16x16x16_f16256 output values / 64 lanes = 4 FP32 values per laneThe grids use mathematical coordinates. K slices illustrate dot products, not hardware cycles. Lane ownership uses the default instruction modifiers and AMD's Matrix Instruction Calculator.
AMD · CDNA matrix core programming ↗The math is fast.
Keep it fed.
The memory hierarchy brings a value from HBM through caches to registers. A tiled kernel can stage values in LDS so a workgroup reuses them.
MI300X has 256 MB of last-level Infinity Cache, 4 MB of L2 per XCD, a 32 KiB vector L1 per CU, and 64 KiB of LDS per CU. LDS is explicitly managed, rather than another automatic cache.
FP16 A + B tiles: stages × (M×K + K×N) × 2 bytes. Excludes padding and other storage; this is an LDS capacity bound, not predicted occupancy.
Now connect
the pieces.
Inspect individual components in Explore, or follow the memory operations of a tiled matmul in Trace.
Built by Jino Rohit.