H5 on GB10: both forms redone under the long-launch protocol (registration)
Status: amended before any capture by the amendment: GB10 captures form (a) only, and (b) keeps its existing GB10 verdict. As registered: registered before any implementation or capture. Nothing below changes after the capture is taken. This is the GB10 half of the roadmap item "Narrow register-staged loads on unaligned shapes (H5): redo both forms with launches over 1 ms and captures that pass the dispersion rule, then decide"; the RTX 4070 half is registered separately when a window is given.
Disclosure
Every earlier H5 capture has been seen, with its numbers, by the author of this registration, who also designed both forms:
- the narrow-load microbenchmarks (h5-narrow-microbench-posthoc.md);
- every capture of h5-followups-gb10-posthoc.md:
gmem-narrow-validate-1and-2,sync-loop-narrow-validate-1,stage-narrow-1,stage-narrow-batched-1,stage-narrow-validate-1,stage-narrow-k1-1and-2on GB10, andgmem-narrow-validate-1on the RTX 4070.
Only stage-narrow-k1-2 passed the dispersion rule. On it, form (b) scored MAPE 15.7% on 92 points (current model 26.8%) and did not pass. That verdict stands and is not rewritten by this redo.
Before writing this document, the raw archives of gmem-narrow-validate-1 and -2 were also read again to design the measurement (section "Design choices made from the void captures").
The two forms, unchanged
- (a) DRAM-side narrow request form.
- The form is T = max(T_core, S x 32 B / BW, N / R), as in validation/h5_dram_form.py.
- BW is the largest point of the profile's strided DRAM curves with 128 B segments. R is the only constant, calibrated on the 1 B aligned DRAM point at 2 CTAs per SM, 8 warps and 16 loads in flight.
- Hot-L2 points keep T_core.
- (b) Register staging, b1 + b2 (K1).
- b1 charges shared memory stores per warp instruction on the shared memory pipe, at Q warp stores per ns per SM. Q is calibrated on stores only, 2 B, 16 KiB stages, 3 CTAs per SM.
- b2 adds tau ns per load served from L2 on each CTA's chain. tau is calibrated on loads only, 2 B, 4 KiB stages, 1 CTA per SM.
- The form is as in validation/h5_staging_k1.py.
No other constant or term is added to either form.
Points, unchanged
-
(a) The frozen point list of
validation/h5_dram_form.py:- 192 pure-load DRAM points: 1, 2, 4 and 16 B; 4, 12 and 24 loads in flight; aligned and offset rows; 1 and 3 CTAs per SM; 4 and 8 warps; two request sizes, see below.
- 96 hot-L2 regression points.
- 36
sync-loop-narrowDRAM points, reported only. - The calibration point.
These points were measured before, but only in captures that failed the dispersion rule, and form (a) has never been judged on them.
-
(b) The 96 K1 points of
validation/h5_staging_k1.py: 4 warps; 6 and 10 KiB stages; 2 and 4 CTAs per SM; 1, 2, 4 and 16 B; loads only, stores only, and both; chains of 0 and 8 MMAs. Also its two calibration points.K1 was judged on these points once and failed. This redo is a replication under the full protocol, not a new sample of points. It is chosen so that no point set is picked after the data; the earlier verdict is reported beside the new one.
Exclusions are fixed before the capture, as before. A point is excluded if, built with the Spark's own ptxas, it does not fit its CTAs per SM, or if any of its kernels uses local memory (see the next section). Every exclusion is listed in the freeze record with its reason.
Local memory
H5's kernel IR describes every point with no spill and no stack frame. In the earlier SASS that was checked, stage-narrow-batched used no local memory, but not every H5 kernel was checked.
Local memory matters because the spill frames' level moves with the local memory allocation (gb10-spill-alloc-plan.md). So, before the freeze, every kernel instance that the points use is built on the Spark and its resource usage is read (ptxas -v or cuobjdump -res-usage). A point whose kernel has a stack frame or spill bytes above 0 is excluded before the capture, as above; it is not measured in several allocations.
If no kernel uses local memory, the freeze record says so, and the allocation effect does not apply to H5.
Protocol
The long-launch protocol of long-launch-capture.md, with its gates and rules unchanged:
- Rounds. Two modes, (a) the
gmem-narrow-validatesweep including thesync-loop-narrowpoints, and (b) the K1 sweep. Each runs as its own process in each of 5 rounds. - Gates. Each round first passes the thermal gate and the 10 s quiet-host gate. Every process is traced and host-checked (no second over 10% of all CPUs busy, no foreign process over 5% of one CPU for two seconds). GB10 has no desktop gate.
- Samples. 15 samples and 3 warm-ups per point.
- Lengths. A pilot sizes each point and the lengths are frozen with their digest before the capture. Every timed launch is at least 1.25 ms in the pilot and at least 1.0 ms in every capture round, checked on every launch.
- Rules 1 and 2. Applied per process, with the usual limits: at most 5% of lists with an interquartile range above 10% of the median, and at most 15% with largest over smallest above 1.5. Each rule allows max(floor(limit x N), 1) failing lists.
- Void rounds. A failing process makes its mode's round void, and a round is added; at most 2 extra rounds per capture.
- Rule 3. Applied per mode across its 5 valid rounds: at most 5% of points whose per-round medians spread more than 10%.
- No exception. No H5 point is exempt from any rule (see the next section).
- Values. A point's measured value is the median of its 5 per-round medians. R, Q and tau come from their calibration points in the same way, each from 5 independent processes.
- Failure. A mode whose capture fails (rule 3, or fewer than 5 valid rounds) leaves its form not judged.
Design choices made from the void captures
These choices were made after reading the void captures (see the disclosure):
-
The low in-flight DRAM exception does not cover H5. GB10's registered exception for low in-flight DRAM points (
low_in_flight_unstable) covers the MLP fields only, at or below 256 KiB in flight over the GPU (384 KiB strided).- 56 of the 192 H5 DRAM points are at or below 256 KiB of requested bytes in flight; the points span 24 KiB to 13.5 MiB.
- The exception is not extended to them: it would exempt the very points form (a) is about.
- In the void captures, the spread across processes was not concentrated there. Points spreading more than 10% across the 5 repeats numbered 9 of 56 at or below 256 KiB and 31 of 137 above it in
gmem-narrow-validate-1, and 7 of 56 and 12 of 137 in-2. The 137 include the calibration point.
-
The DRAM points are sized to 3.0 ms. In the same captures the spread fell with the launch length:
Launch length -1-2Under 1 ms 21 of 70 12 of 69 1 to 2 ms 6 of 26 4 of 27 2 to 3 ms 11 of 56 3 of 53 3 ms and over 2 of 41 0 of 44 The counts cover the 193 DRAM points of each capture, the calibration point included. Those captures had no host gate. The pilot therefore grows every DRAM point (
leveldram, thesync-loop-narrowpoints and the calibration point included) until its fastest launch reaches 3.0 ms.- It grows the request bytes, never below the point's registered request size of 128 or 512 MiB, so the two request sizes stay two points.
- The freeze rejects a DRAM point under 3.0 ms.
- Hot-L2 points and the K1 points keep the 1.25 ms target. K1's earlier qualified capture used 9 GiB per sample and launches of 1.37 to 14.3 ms, and passed rules 1 to 3.
-
Slow single launches. In the void captures, long DRAM launches still had occasional single samples 1.3 to 1.7 times the fastest. Rule 2 judges them as usual.
Profile and core
Predictions are frozen before the capture from the GB10 profile on main, profiles/gb10-0.23.0.json (SHA-256 f5fa8ecc...), and from the core at the implementation commit.
- BW is that profile's largest point of the 128 B strided curves: 222.70 GB/s. The earlier freezes used 236.08 GB/s from
0.22.0-posthoc. - The profile's
spill_reload_latency_by_countis carried over and marked provisional. H5's kernels have no spill, so the core does not read it for these points. - The freeze records the profile and core SHAs, every point's T_core, the DRAM requests and sector bytes, the lengths, and the exclusions.
Pass rules, unchanged
-
(a) Passes when all of these hold:
- R is identifiable: the calibration point is slower than both T_core and the sector limit.
- MAPE is under 15% on the 192 pure-load DRAM points, after exclusions.
- No width and alignment group has a median error beyond 10%.
- The hot-L2 predictions are unchanged.
The
sync-loop-narrowpoints are reported only. -
(b) Passes when the MAPE is under 15% and every width's median error is within 10%.
- The 8-MMA points count only if the current model's median error on the 16 B 8-MMA points is within 10%. Otherwise only the points without MMA are judged.
- The MAPE and width medians over the points without MMA are reported as a descriptive result, as before.
Decision
- A form that passes here has passed the GB10 half only. Whether it goes into the core is decided after the RTX 4070 half, registered separately with the same form and pass rule.
- For (b), the decision also reports the earlier failed verdict on
stage-narrow-k1-2. - A form that fails here, or is not judged because its capture fails, does not go into the core in v0.3.0. No further GB10 attempt is registered.
Reported either way, per mode:
- every round's gates and rule counts;
- rule 3;
- the calibration values from each process;
- every point's measured value and errors;
- the exclusions, with their reasons.