Post-hoc recheck of the first-wave spill footprint
This CPU-only recheck evaluates the landed implementation at cd5f35f.
The microbenchmark measurements are legacy short-launch inputs, so the
conclusion is provisional. The analysis leaves the frozen v0.2 conclusions
in force. The earlier spill residency registration at e7fed3a on
s5/v03-spill-residency describes the separate per-SM candidate 5d7262d. Its phase-entry rule
differs from the landed rule.
Landed model and legacy recheck
The landed model uses
max(1, min(hardware_ctas_per_sm, ceil(grid_ctas / sm_count)))
as its first-wave peak. It uses that count for the
frame footprint, the spill traffic split, and the reload lookup throughout
the kernel. The synthetic spill benchmark launches one CTA per SM. Its
128 KiB of frames previously paid for the eight-CTA allowance of 1 MiB.
The recheck uses the same carveout, spill scope, profile values and matched
zero-reload subtraction in both builds.
| Device | Points | Signed median, base to landed | MdAPE, base to landed | MAPE, base to landed |
|---|---|---|---|---|
| GB10 | 4 | +209.6% to +67.6% | 209.6% to 67.6% | 183.8% to 54.9% |
| RTX 4070 | 4 | +70.7% to +38.0% | 70.7% to 38.0% | 67.2% to 35.0% |
All 2,799 other predictions are bit-identical because their IR has no spill charge. The landed and per-SM candidates also agree bit for bit on all 2,807 recheck points. The spill rows still overpredict extra time. Scaling both local bandwidth estimates by factors of 2, 3, 4 and 6 leaves all four predictions on each device bit-identical. The model assigns this fixture an 8 KiB shared-memory carveout and uses the 16 KiB L1 miss curve. At the 128 KiB footprint this curve predicts a miss fraction of 1.0 on GB10 and 0.9998 on RTX 4070, so the reload lookup charges nearly all reloads at its L2 latency. The hardware carveout for this fixture has not been measured. The old measurements lack the long-launch five-round quality record required by the current rules. The first GB10 long-launch capture voided six of seven spill rounds on rule 1. The recheck uses none of those rounds. Refreshed baseline First GB10 capture
Archived prediction replay
The clean builds are 0c0f83e397b38e44867fc274d1401f64bba62519
and cd5f35f8d490427726c4c08b5e573fe06c64ddff. The replay uses
1,104 archived v0.2 KernelIRs for their original devices, warm and cold,
draw 0 and 32 perturbations, seed 17. All 1,104 input files match the
archived AOT index, SHA-256
8d752498cb7a015428a960dd1a07a10e003cc84a3891bf135776287c5512e0fd.
The replay uses IR and profile inputs only.
| Profile | Revision | SHA-256 |
|---|---|---|
| GB10 | 0.22.0-posthoc | 10625fa4832c864fcba4d81c9b99480e58f69c81644a9950083b702488442471 |
| RTX 4070 | 0.21.0-posthoc | 3bb13b7307eabb803465a05cbcd939b78a6252bb2c54f3dc761c069ac2a8ed91 |
| Cohort | IR index SHA-256 |
|---|---|
| GB10 attention | 787124c63cd140e3e9839af969d8d0494d87f80bd74483972ab3217aebf476a0 |
| GB10 GEMM | 4608ff312e124df09af346ae500a089d1dc632f18ffa25162136d92afc4a65d5 |
| RTX 4070 attention | d4991275e43276e8562dcfc375ba6ebd07a9291329492c2cfe4d403b2aa2033b |
| RTX 4070 GEMM | 141214f8b05e23ec55c3c4240f677a9ef7d4eda778a4218f16236d04eedb30f2 |
Each cohort digest uses the compact sorted-key JSON of the case and config IDs with their individual IR digests, in case and config order.
| Cohort | Cache | Bit-identical timing or unsupported status | Nominal changed | Draws only | Status changes |
|---|---|---|---|---|---|
| GB10 attention | cold | 228 | 0 | 0 | 0 |
| GB10 attention | warm | 228 | 0 | 0 | 0 |
| GB10 GEMM | cold | 322 | 2 | 0 | 0 |
| GB10 GEMM | warm | 322 | 2 | 0 | 0 |
| RTX 4070 attention | cold | 228 | 0 | 0 | 0 |
| RTX 4070 attention | warm | 228 | 0 | 0 | 0 |
| RTX 4070 GEMM | cold | 324 | 0 | 0 | 0 |
| RTX 4070 GEMM | warm | 324 | 0 | 0 | 0 |
| Total | 2,204 | 4 | 0 | 0 |
All 1,890 spill-free rows keep their status and timings exactly. The four
changed rows are GB10 m32n64k32-w4-s1-g1 for v02-gb10-decode-4
and v02-gb10-decode-40 in both cache states. The largest nominal
difference is 19.906 ns, and the largest relative nominal difference is
0.008628%. The largest difference across individual draws is 371.111 ns
(0.1640%).
The raw predictions, per-IR digests and comparison script are archived
locally at results/v03-spill-cd5f35f/old-to-main.tar.gz, SHA-256
c0dd9ebc49b6c478cb6f9950b713b93c53bbbfe329dc450fcffd66d5550c4d10.
The paired comparison JSON has SHA-256
07e43767b9b9949029f934647983cc980c5ec1ed61df7735a8132683613a86d0.
Tail-wave limit
For an uneven launch, some SMs can hold fewer CTAs than the first-wave peak. A tail can also have fewer CTAs per SM after a full wave. The peak charge still applies, so the model can overstate the local frame footprint and reload cost for those phases. In a synthetic full wave followed by one CTA, with a 1 KiB frame and 128 reloads per thread, the landed model predicts 18,391.6 ns per step of extra time on GB10 and 18,469.0 ns on RTX 4070. The per-SM candidate predicts 15,235.0 ns and 17,754.5 ns respectively, a gap of 20.72% and 4.02% relative to that candidate. This is a difference between models on a constructed input. There is no corresponding hardware measurement.
Across the archived IR, the landed and per-SM models agree bit for bit on
timings or unsupported status for 2,176 of 2,208 rows. Five differ
nominally, 27 differ only in perturbed draws, and all statuses agree. The
maximum nominal and any-draw differences are 0.308 ns (0.0000288%) and
170.765 ns (0.01806%), respectively. The raw comparison and synthetic
witness are in results/v03-spill-cd5f35f/review.tar.gz, SHA-256
14215be75eea1378fdaabc74f429a8bd4ace2538539fd4ac42a104ad3a65fdf7.