Why GB10 decode predictions are compressed: location and a registered test
Post-hoc diagnosis, then a registration. On main f1f8b92, whose core is identical to 70de487. The diagnosis reads KernelIR and profiles only: it reads no label, sealed or not. The measured side is quoted from the published post-hoc analysis. The registration is fixed before any run, for review by 6 and release by the lead. Nothing here changes the core, a profile or a rule.
ROADMAP item: "GB10 decode shapes are predicted too compressed: find out why".
What is compressed
decode-16 is (M, N, K) = (16, 8192, 4096), 36 configs. From posthoc-core-phase1-phase2.md, section 2 (phase 2 labels, profile 0.11.0-m3), the measured times fall into three groups:
| Group | Measured (us) |
|---|---|
small tiles, num_stages = 4 (prefetch distance 2) | 270 to 275 |
num_stages = 1/2 (prefetch distance 0), and 128-row tiles with one CTA per SM | 290 to 301 |
m128n64k64-w8-s1/s2 | 325 to 330 |
Facts on main and the 0.23.0 profile
KernelIR: the phase 2 development AOT of decode-16 (36 configs, the IR that the form c analysis used). Core 70de487, profile gb10-0.23.0, draw 0.
-
Predictions. Warm, 33 of 36 configs are predicted at 281.0 to 282.0 us. The other three:
m128n64k64-w8-s1at 295.5 us;m128n64k64-w8-s2at 295.0 us;m128n128k64-w4-s4at 282.0 us.
The spread is 5.2%, against 22% measured. Cold is the same within 0.5 us.
-
Every config is DRAM bandwidth bound. All 36 report
dram_bandwidthas the bound for 0.88 to 1.00 of their time. They deliver 239.8 GB/s, thedram_bw_by_active_smsceiling at 48 SMs (240.1 GB/s). The DRAM bytes are 67.4 MB for every config. -
The latency path gives the same time. With
dram_bw_by_active_smsdoubled (a counterfactual model input, nothing else changed), the bound moves todram_latencyfor every config. The times are 277.9 to 293.8 us, the same spread. The latency comes from the DRAM MLP curve by Little's law (bytes in flight over the curve's bandwidth at that in flight). The configs run at 239 to 243 GB/s, the curve's saturated plateau. On that plateau the latency grows in proportion to the bytes in flight, so the time comes out as bytes over the plateau bandwidth whatever the tile, warps or stages. That last step is an inference from the identical times, not a separate measurement. -
Not the port floor. Core
9c12720(before the round-trip port floor), with the same doubled input, gives 277.9 to 291.0 us. The floor changes no config by more than 1.0%. -
Not the low in-flight latency states, for 30 configs. The 32 MLP points flagged
low_in_flight_unstable(4 to 256 KiB in flight, both issue modes) were scaled by 0.8 as a counterfactual. 30 configs did not move, and two moved by 0.1 us. Four configs moved:m128n64k64-w8-s1/s2: 295 to 307 us;m128n128k64-w4/w8-s4: 282 to 287 and 284 us.
These are the configs that already stand apart, with partial waves and one or two CTAs per SM. The band can widen the spread at the slow end. It does not separate the 270 us group from the 290 us group.
-
The contiguous closed loop has no prefetch gap at these grids.
dram_closed_loopin 0.23.0 (long launches, five rounds),cp_async, no compute, at decode-16's sizes:CTAs Stage Delivered GB/s for 1 / 2 / 3 / 4 buffers 96 4 KiB 241.3 / 241.0 / 240.2 / 239.6 96 8 KiB 240.3 / 240.1 / 239.8 / 239.6 128 4 KiB 241.5 / 240.5 / 239.7 / 237.8 128 8 KiB 237.1 / 238.3 / 237.6 / 237.4 This is the finding of the phase 2 post-hoc, now on the qualified profile: the measured 7% to 10% gap between prefetch distance 0 and 2 is not in the contiguous microbenchmark.
-
Access granularity is measured, as an MLP curve, and not read by the core.
decode-16readsB(row stride 16 KiB) in chunks ofBLOCK_N * 2bytes: 128 B forn64and 256 B forn128. The profile'sdram_bw_by_bytes_in_flight_stridedhas the shape. Its plateau at 128 B segments is 221 to 223 GB/s, at 512 B 233 to 235, and at 4 KiB 236 to 239, against 242 for contiguous streams. No core code reads the curve. Read by the core, it would move all configs by about 8%, not spread them, because every config reads 128 or 256 B chunks.
Location
The compression is located in the DRAM MLP curve's saturated plateau. It is not in the port floor or in the low in-flight band (facts 3 to 5). Every decode-16 config is past the knee. There the core's DRAM time, by bandwidth share or by Little's law latency, is the bytes over one plateau bandwidth. No input of the core depends on the prefetch distance there. The measured groups split by prefetch distance (the table above), and the only contiguous measurement of that variable shows no effect (fact 6).
Hypothesis
H-gran. On GB10, with decode-16's access, the delivered DRAM bandwidth depends on the stage buffers per CTA at equal grid and stage size. The access is chunks of 128 to 256 B at a 16 KiB stride. The bandwidth is lower with one buffer (prefetch distance 0) than with four. With contiguous stages it does not depend on the buffers (fact 6).
H-gran combines facts 6 and 7. Neither measurement covers the strided access in a closed loop. That is the gap the test fills.
Registered test
A diagnostic mode, not in BUILD_MODES and not in any profile: the closed-loop kernel with the strided-mlp access pattern. Each CTA's stage is segment bytes from each of stage / segment rows at a fixed stride, and the phase advances on wrap as in strided_mlp_cp_async_kernel, so there is no L2 reuse.
- Grid. 96 and 128 CTAs. Stages of 4 and 8 KiB. Buffers 1, 2 and 4.
cp_async, no compute. - Access. Segments of 128 and 256 B at a 16 KiB stride (strided), and contiguous stages (the control). All interleaved within each process, in a fixed order per process: grid, stage, access, buffers ascending.
- Points. 2 x 2 x 3 x 3 = 36.
- Lengths. Pilot sized to in-kernel windows of at least 2.5 ms, twice the observe overload. This follows the carveout re-registration, because strided points near a level switch can shorten a window.
- Acquisition. GB10 on Spark 1, under the GPU lock for the transfer, the build and every run, coordinated with 7 and 8. Three processes, each through
capture_posthoc.pywith--clock-probe, the thermal and host gates, and rules 1 and 2. A process that fails a gate,long_launch.verify, or rule 1 or 2 is void, archived, not read, and replaced, at most twice. Rule 3 is reported, not used to void.
Statistic. For each (grid, stage, access): the gap g = bw(4 buffers) / bw(1 buffer) - 1, from the median over the three processes of each point's median.
Readings, fixed here.
- Control. On the contiguous access, |g| must be at most 2% at all four (grid, stage) pairs, as in fact 6. If not, the control is not reproduced and nothing is read.
- H-gran supported. g >= 5% at at least three of the four (grid, stage) pairs, for at least one of the two segment sizes.
- H-gran rejected. |g| < 2% at all eight strided pairs.
- Inconclusive. Every other outcome. All gaps are reported.
Reported, not judged. Every point's bandwidth and round range, g per pair, the 2-buffer points, and the strided plateau against the profile's dram_bw_by_bytes_in_flight_strided.
What each reading leads to (not decided here).
- Supported: a later registration of a core form that reads a closed-loop bandwidth by access granularity. It is scored first on this microbenchmark and then on decode GEMM labels.
- Rejected: the next suspect is something no microbenchmark has isolated, such as tail waves at one or two CTAs per SM (fact 5) or the GEMM's own instruction stream. Prefetch distance at strided access is then excluded.
Data the item still needs, beyond this test
- Labels. The per-config
decode-16labels on GB10 are in the sealed phase 2 reports, and are not read here. Linking a microbenchmark result to the GEMM needs one of two things, and the choice is the lead's:- a logged post-hoc access through
validation/posthoc.py; - a new, open GB10 decode development capture under the long-launch protocol.
- a logged post-hoc access through
- Age of the groups. The measured groups are from short launches on the
0.11.0-m3era setup. Whether they hold under long launches is not known.
Limits
- One device. The RTX 4070
decode-16is not compressed (tau-b 0.697 warm on the v0.2 development baseline, profilertx40700.21.0-posthoc), so this item is GB10-only. The RTX 4070 run of the same mode would serve as a second control, not as a test. - The counterfactuals of facts 3 and 5 change model inputs only. They show where the core's time comes from, not what the hardware does.
- H-gran covers the 270 us against 290 us split. The 325 to 330 us group (
m128n64k64-w8-s1/s2) may need its own explanation.
Result: control not reproduced, no reading
Measurement commit 65eef36 (local branch s4/v03-strided-closed-loop, not in main), binary SHA-256 840e9b18118470ecc6547d63a071e85654aa4193cca7e7187e39c2dba7eedd6c, built on Spark 1 with CUDA 13.0 for sm_121a.
- Session. 2026-11-27 from 22:46:51 to 22:54:02 UTC, under the GPU lock for the transfer, the build and every run. The pilot froze 36 points at 22:48:29.
- Raw records.
results/v03-gb10-decode-closed-loop/65eef36/spark-raw.tar.gz(SHA-25636533f13...) in the 4 worktree. - Processes. The first three were valid, and no replacement was needed. Each passed the thermal and host gates, rules 1 and 2 (process 3: 2 of 72 lists over the IQR ratio, 3 allowed), and
long_launch.verify(shortest launch 2.47 ms). - Rule 3, reported. The largest spread of a point's per-process medians is 6.3%. No point is over 10%.
The control is not reproduced. On the contiguous access, g lies outside plus or minus 2% at three of the four (grid, stage) pairs: -4.7% (96 CTAs, 4 KiB), -3.7% (96, 8 KiB) and +4.2% (128, 8 KiB). At (128, 4 KiB) it is -1.1%. By the registered rule, nothing is read, and no statement on H-gran is made.
Reported, not judged (bandwidth in GB/s, median over the three processes of each point's median, for 1 / 2 / 4 buffers):
| CTAs | Stage | Contiguous | 128 B segments | 256 B segments |
|---|---|---|---|---|
| 96 | 4 KiB | 240.7 / 240.7 / 229.3 | 224.7 / 225.6 / 225.9 | 232.6 / 233.1 / 233.4 |
| 96 | 8 KiB | 240.9 / 232.7 / 231.9 | 224.6 / 225.5 / 224.2 | 232.1 / 232.1 / 233.0 |
| 128 | 4 KiB | 240.8 / 227.6 / 238.2 | 224.8 / 225.7 / 226.0 | 232.6 / 233.4 / 233.6 |
| 128 | 8 KiB | 228.4 / 231.9 / 237.9 | 224.6 / 225.6 / 225.6 | 232.2 / 232.8 / 232.2 |
-
Strided gaps. g at the eight strided pairs is -0.2% to +0.5%. The strided plateaus are near the profile's
dram_bw_by_bytes_in_flight_strided: 128 B 225 here against 221 to 223 there, 256 B 233 here (the profile has 512 B at 233 to 235). -
What the control shows. Each contiguous point sits at one of two levels, about 240 or 228 to 232 GB/s, and mostly keeps it across the three processes. The level does not follow the buffer count. The same points in the 0.23.0
dram_closed_loop(fact 6) are 237 to 241 for every buffer count. -
Likely cause, not checked. Both flush L2 before every launch. This replica differs from the profile's closed loop in ways the registration did not foresee:
- a 4 GiB source buffer instead of 256 MiB;
- launches of 2.5 ms instead of about 1.3 ms;
- three processes instead of five rounds, and a different point order.
The profile's points also reach the lower level in some rounds (their round median ranges go down to 232 to 236 GB/s), and the median of five rounds sits on the upper one. Which difference, if any, sets the level is not known.
Decision: not repeated
Decided by the lead after this result. The control is not reproduced and H-gran is not tested. The test is not repeated, and the item is recorded as a known limit (design.md 9.6).
The reason is that a control that holds the level is not available.
- What differs from the profile. Both flush L2 before every launch, and both use
cp.async, 256 threads and the same grids, stages and buffer counts. The replica differs only in:- the source buffer, 4 GiB against 256 MiB;
- the launch length, 2.5 ms against about 1.3 ms;
- three processes against five rounds, and the point order.
- The profile has the lower level too. Its round median ranges reach 232 to 236 GB/s at several of these points. The median of five rounds sits on the upper level.
- Matching the three differences would not fix the level. It could make the lower level rarer, but it would not hold it, because the profile's own rounds reach it. What sets the level is not known, and finding out is a separate diagnosis.
- Passing would be luck. Under the registered control (|g| at most 2% on the contiguous access), a repeat would pass only by chance.
The strided gaps above (g within plus or minus 0.5% at both segment sizes) are reported only. Since the control failed, they are not evidence for or against H-gran.