Pidoku

Hopper: H100 and H200

Module 7 Lesson 7.b 50 min Difficulty 3/5

Prerequisites 4.c, 4.d, 4.e, 4.f, 7.a


Before you start: words you need#

WordPlain meaning
SM (streaming multiprocessor)The GPU’s basic building block: a small processor with its own schedulers, registers and arithmetic units (4.a).
GPC (graphics processing cluster)A group of SMs that share some hardware.
Tensor coreThe unit inside an SM that does small matrix multiplications very fast (4.f).
InterposerA thin slab of silicon that the GPU die and memory stacks sit on, so thousands of short wires can join them.
YieldThe fraction of chips from a wafer that work. Big chips have lower yield.
FMAFused multiply-add: a × b + c in one step. One FMA counts as 2 FLOPs.
Machine balancePeak FLOP/s ÷ memory bandwidth: how many operations per byte a program must do to keep the chip busy (2.f, 6.a).

1. What is it?#

Hopper is NVIDIA’s 2022 data-center architecture. Its flagship, the H100, is the best-documented AI chip ever made and still the largest installed base in 2026, so it is the one to know by heart. The H200 is the same chip with more and faster memory.

An H100 is one large die (GH100) in the middle of a package, surrounded by stacks of HBM, all sitting on a silicon interposer. The die is a grid of 8 GPCs, each holding 18 SMs; 132 of the 144 SMs are switched on. Each SM is split into 4 partitions, each with its own scheduler, registers, 32 FP32 lanes and one tensor core.

Learn this one floorplan and every later NVIDIA GPU reads as a variation of it: more SMs, a second die, different memory, a faster link. Facts checked on 11 November 2026.

NVIDIA H100 SXM5 · PACKAGE AND GH100 DIEHopper · 2022 · schematic, not to scale · checked 16 Oct 2026SXM5 module substrateCoWoS-S silicon interposerHBM316 GB~670 GB/sHBM316 GB~670 GB/sHBM316 GB~670 GB/sHBM316 GB~670 GB/sHBM316 GB~670 GB/sunused site(6th stack)NVLINK 4 PHY · 18 LINKSPCIE GEN 5 x16 · HOST I/OGPC 0SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 1SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 2SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 3SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 4SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 5SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 6SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSMGPC 7SMSMSMSMSMSMSMSMSMSMSMSMSMSMSMSML2 · 25 MBL2 · 25 MB123456789WHAT YOU ARE LOOKING AT1GPC × 8Graphics processing cluster: 9 TPCs = 18 SMs on thefull die. Work is spread across GPCs by theGigaThread engine.2SM, 132 of 144 enabledEach tile is a streaming multiprocessor; the darkband is its 4 tensor cores. Hatched tiles are fusedoff to raise yield.3L2 cache, 50 MBTwo halves joined by a crossbar. Every byte fromHBM passes through it.4HBM3 stack16 GB each, stacked DRAM dies on a 1,024-bitinterface. Five stacks = 80 GB.5Memory PHYsTen 512-bit controllers: a 5,120-bit bus to HBM,3.35 TB/s.6NVLink 418 links, 900 GB/s total, to NVSwitch chips on theHGX baseboard.7PCIe Gen 5 x1664 GB/s each way to the host CPU: 14x less thanNVLink.8The empty sixth siteSix HBM sites exist; H100 ships with five. H200fills all six with HBM3e: 141 GB, 4.8 TB/s.9Package814 mm² die, 80 B transistors on TSMC 4N, on aCoWoS-S interposer, on the SXM5 module.SIDE VIEW · SECTION THROUGH THE PACKAGElogic dieHBM: 8-16 DRAM dies, joined by TSVsHBM base (logic) dieGPU logic die, flip-chip on microbumpsSilicon interposer: short, dense wiresOrganic substrate; bumps to the moduleDIE814 mm²80 B transistorsSMS132528 tensor coresFP8 DENSE1,979 TF3,958 with sparsityBF16 DENSE989 TFFP32 67 TFMEMORY80 GBHBM3 · 3.35 TB/sPOWER700 WSXM5, liquid or airComputeMatrix unitsOn-chip SRAM / cacheOff-chip memoryI/O and PHYsInterconnectDisabled / spareSource: NVIDIA H100 Tensor Core GPU Architecture whitepaper; H100 SXM5 datasheet. Tile positions of fused-off SMs vary per chip.
The H100 package from above, with a side section below. Hatched SM tiles are fused off: every H100 has 12 disabled SMs, in different places on each chip.

2. Why does it matter?#

  • Most production inference in 2026 still runs on Hopper. Rental prices fell as Blackwell arrived: market indexes put an H100 at roughly $2–3 per GPU-hour in November 2026, with hyperscaler on-demand list prices several times higher. That makes it the cheapest serious serving GPU for many models.
  • Every optimised kernel you will read about — FlashAttention-3, FP8 GEMMs, vLLM’s attention backends — was first written for Hopper’s hardware features. To understand them you need this chip.
  • The H100 → H200 change is the cleanest experiment in the industry: same compute, more memory bandwidth, and inference got about 1.4x faster. It proves the central claim of Module 2.

3. Simple analogy#

A GPU die is a factory floor. The GPCs are halls, the SMs are workshops in each hall, the partitions are workbenches in each workshop, and the tensor core is the power tool on each bench. The HBM stacks are warehouses next to the factory, and the interposer is the private road between factory and warehouses. The H200 did not add a single workbench; it built bigger warehouses and a wider road — and the factory got faster, because the workers had been waiting for materials.


4. Tiny example#

Why does one user’s chat run so far below the H100’s peak?

  • Generating one token for one user multiplies each weight by one number: 2 FLOPs per weight.
  • At FP8 each weight is 1 byte. So the work is 2 FLOPs per byte read.
  • An H100 SXM5 can do 1,979 TFLOP/s of FP8 but read only 3.35 TB/s. To keep the tensor cores busy it needs 1,979 ÷ 3.35 ≈ 590 FLOPs per byte.

2 versus 590: one user uses well under 1% of the chip’s arithmetic. Only when roughly 300 users’ tokens are computed together (each weight read once, used 300 times) does the H100 become compute-bound. That is why batching (2.d, 12.j) is the economic heart of inference.


5. Technical explanation#

From package to lane#

Read the package drawing from the outside in:

  1. The module. An SXM5 board carries the package, power delivery for 700 W and the NVLink connectors to the HGX baseboard.
  2. The package. A CoWoS-S silicon interposer holds the die and the HBM stacks side by side. The interposer exists because a 5,120-bit memory bus needs thousands of wires a few millimetres long; no circuit board can route that.
  3. The die. 814 mm² and 80 billion transistors on TSMC 4N, close to the largest die a lithography machine can expose in one shot (the reticle limit, about 830 mm²).
  4. GPCs. Eight graphics processing clusters. A GPC groups 9 TPCs, each of two SMs. The GigaThread engine hands thread blocks to GPCs (4.c).
  5. SMs. 144 on the full die; 132 on the H100 SXM5 (114 on the PCIe card). A die that large almost always has defects; designing in spare SMs and fusing off the bad ones turns a defective die into a sellable one. This is why every H100 has a slightly different set of working SMs.
  6. Partitions and lanes. Inside each SM, four schedulers each issue one warp instruction per clock to their own 32 FP32 lanes, 16 INT32, 16 FP64, 8 load/store units, 4 special-function units and one tensor core:
INSIDE ONE HOPPER SM · H1004 partitions · 1 warp scheduler each · checked 16 Oct 2026L1 instruction cachePARTITION 0L0 i-cacheWarp schedulerDispatch · 32 thr/clkRegister file · 16,384 × 32-bit = 64 KBINT32 ×16FP32 ×32FP64 ×16Tensor Core4th gen · FP8LD/ST ×8SFU ×4PARTITION 1L0 i-cacheWarp schedulerDispatch · 32 thr/clkRegister file · 16,384 × 32-bit = 64 KBINT32 ×16FP32 ×32FP64 ×16Tensor Core4th gen · FP8LD/ST ×8SFU ×4PARTITION 2L0 i-cacheWarp schedulerDispatch · 32 thr/clkRegister file · 16,384 × 32-bit = 64 KBINT32 ×16FP32 ×32FP64 ×16Tensor Core4th gen · FP8LD/ST ×8SFU ×4PARTITION 3L0 i-cacheWarp schedulerDispatch · 32 thr/clkRegister file · 16,384 × 32-bit = 64 KBINT32 ×16FP32 ×32FP64 ×16Tensor Core4th gen · FP8LD/ST ×8SFU ×4256 KB L1 data cache / shared memoryconfigurable split: up to 228 KB sharedTensor Memory Accelerator4 texture units · tex cache123456HOW A WARP MOVES THROUGH IT1Pick a warpEach cycle, each of the 4 schedulers picks oneready warp (32 threads) from up to 16 residentones and issues one instruction.2Read registersOperands come from a 64 KB register file perpartition: 256 KB per SM, more than the L1.3Scalar lanesOrdinary arithmetic runs on 32 FP32 lanes: onewarp instruction per clock.4Tensor coreA matrix instruction (wgmma) feeds whole tilesto the tensor core. This is where ~95% of anLLM's FLOPs go.5Shared memoryTiles are staged here so 32 threads can reuseeach byte many times before going back to L2.6TMACopies whole tiles between HBM and sharedmemory asynchronously, so threads keepcomputing.PER SM128 FP32lanes per clockTENSOR CORES42,048 dense FP16 FMA/clkREGISTERS256 KB65,536 × 32-bitL1 / SHARED256 KB≤228 KB sharedRESIDENT64 warps2,048 threads max
One of the 132 SMs. Lanes are drawn to count: every small square is one functional unit.

What Hopper added#

Hopper is the generation where the GPU was redesigned around transformers:

FeatureWhat it doesWhy it mattered
FP8 tensor cores + Transformer EngineMatrix maths in 8-bit floats, with scaling managed in softwareDoubled throughput over FP16 for training and inference (13.e)
wgmma (warpgroup MMA)Four warps issue one large asynchronous matrix multiply togetherKeeps the tensor cores fed while threads do other work
TMA (Tensor Memory Accelerator)One thread describes a whole tile copy; hardware does itFrees registers and threads from address arithmetic
Thread block clusters + distributed shared memoryBlocks on neighbouring SMs read each other’s shared memoryBigger tiles without a round trip through L2 (4.d)
NVLink 4 + third-generation NVSwitch18 links, 900 GB/s per GPU8-GPU tensor parallelism without the network (9.c)
Confidential computingEncrypted, attested GPU memoryRegulated workloads on shared clouds

FlashAttention-3 and the fast FP8 GEMMs in cuBLAS and CUTLASS are built around wgmma and TMA. Code written for the older A100-style mma.sync instruction runs on Hopper, but at a fraction of peak.

H100 variants and H200#

H100 PCIeH100 SXM5H100 NVLH200 (SXM)
SMs114132132132
Memory80 GB HBM2e80 GB HBM394 GB HBM3141 GB HBM3e
Bandwidth2.0 TB/s3.35 TB/s3.9 TB/s4.8 TB/s
Power350 W700 W400 W700 W

The H200 is the same GH100 die. The only change is the memory: all six HBM sites filled, with faster HBM3e. That alone makes it about 1.4x faster at memory-bound decode and lets a 70B model at FP8 fit on one GPU with room for a KV cache. For LLM inference, memory is the product.

The numbers, derived#

NVIDIA’s 989 TFLOP/s of dense BF16 is a product of four counts:

132 SMs × 4 tensor cores × 512 FMA per clock per tensor core × 2 FLOP per FMA × 1.83 GHz
= 989 TFLOP/s

FP8 doubles the FMAs per clock: 1,979 TFLOP/s. The “with sparsity” figures double again, but only for weights pruned to a 2-of-4 pattern, which almost no production LLM uses. Quote dense numbers.


6. Under the hood#

The program derives the peak numbers and shows, for each batch size, whether decode is memory- or compute-bound — the calculation from section 4, done properly.

Go
// hopper.go — derive H100's peak numbers and the arithmetic intensity it needs.
package main

import "fmt"

type GPU struct {
	Name                 string
	SMs                  int
	TensorFMAPerClkPerSM float64 // dense BF16 FMAs per clock per SM
	ClockGHz             float64 // clock NVIDIA's tensor figures assume
	BandwidthTBs         float64
}

func main() {
	gpus := []GPU{
		{"H100 PCIe", 114, 2048, 1.62, 2.0},
		{"H100 SXM5", 132, 2048, 1.83, 3.35},
		{"H200", 132, 2048, 1.83, 4.8},
	}
	fmt.Println("GPU          BF16 TF   FP8 TF   balance BF16   balance FP8  (FLOP per byte)")
	for _, g := range gpus {
		bf16 := float64(g.SMs) * g.TensorFMAPerClkPerSM * 2 * g.ClockGHz / 1000 // TFLOP/s
		fp8 := 2 * bf16
		fmt.Printf("%-11s %8.0f %8.0f %14.0f %13.0f\n",
			g.Name, bf16, fp8, bf16/g.BandwidthTBs, fp8/g.BandwidthTBs)
	}

	// Decode at batch 1 multiplies a weight matrix by one vector: 2 FLOPs per weight,
	// and each FP8 weight is 1 byte. Intensity 2 FLOP/byte, far below the balance.
	fmt.Println("\nbatch  intensity (FLOP/byte, FP8 weights)  regime on H100 SXM5")
	for _, b := range []int{1, 8, 64, 256, 512, 1024} {
		ai := 2.0 * float64(b)
		regime := "memory-bound"
		if ai >= 1979/3.35 {
			regime = "compute-bound"
		}
		fmt.Printf("%5d  %35.0f  %s\n", b, ai, regime)
	}
}

The first table reproduces NVIDIA’s 989 and 1,979 TFLOP/s for the SXM5 (and the PCIe card’s 756, at its lower clock). The second shows decode staying memory-bound until about 300 tokens are processed together. In real engines the KV cache reads (12.e) add bytes per token, so the crossover comes even later.


7. Performance implications#

  • Decode is bandwidth-bound at any realistic batch for long contexts; the H200’s 4.8 TB/s makes it ~1.4x faster than the H100 on the same model.
  • Prefill is compute-bound and runs near FP8 peak with good kernels; H100 and H200 are about equal there.
  • FP8 halves bytes per weight versus BF16, so it speeds up decode almost 2x and doubles peak compute — the single most valuable Hopper feature for inference (13.e).
  • Hopper has no FP4 tensor cores. FP4 weights can be stored and unpacked to FP8, saving memory and bandwidth, but the arithmetic itself does not get faster as it does on Blackwell (7.c).

8. Production implications#

  • Capacity: a 70B model at FP8 (70 GB) does not leave room for a useful KV cache on an 80 GB H100; serve it on two H100s with tensor parallelism (14.c) or one H200.
  • Topology: an HGX H100 board connects 8 GPUs through NVSwitch at 900 GB/s each. Tensor parallelism inside the board is cheap; across boards it uses the much slower network (9.d).
  • Kernel choice matters: engines pick Hopper-specific attention and GEMM kernels (17.c). Running an old build or the wrong backend can lose half the performance.
  • Economics in 2026: H100s are the “value” tier. For models that fit, cost per token on rented H100s is often competitive with newer parts at their higher prices; measure (23.c).

9. Common mistakes#

  1. Quoting sparse FLOPs. The “with sparsity” number is twice the real dense number.
  2. Expecting H200 to speed up prefill. It barely does; it is a memory upgrade.
  3. Treating a fused-off SM as a fault. All H100s have 12 disabled SMs by design.
  4. Assuming the PCIe H100 equals the SXM5. Fewer SMs, lower clock, much less bandwidth and no full NVLink.

10. Hands-on exercise#

  1. Run hopper.go. Change the H100 SXM5 bandwidth to the H200’s 4.8 TB/s and find the new batch at which decode turns compute-bound.
  2. Using the package drawing, estimate how many SMs each instance gets in a 7-way MIG split (21.d).
  3. On a machine with an H100, run nvidia-smi -q | grep -i -A2 clocks under load and compare the clock to the 1.83 GHz used above.

11. Interview questions#

  1. Why does the H100 package need a silicon interposer?
  2. What changed between H100 and H200, and what did not? What does that tell you about LLM inference?
  3. Derive 989 TFLOP/s from the SM count and the clock.
  4. Why is a single user’s decode memory-bound on any H100?
  5. Which Hopper hardware features does FlashAttention-3 rely on, and why?

12. Further reading#

Checked on 11 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in