Skip to content

ptx-shapes: gqa_prefill_flash_g7_q8 at the GB10 scan's spill and JIT local on sm_121a and sm_121 - #871

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-spill-pin-gqa-g7q8
Oct 27, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-spill-pin-gqa-g7q8

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

GB10에서 gate-ptx-spill이 gqa_prefill_flash_g7_q8 한 행 때문에 빨간색인 것을 cc 12.1 표의 측정값으로 맞춥니다.

Part of #565.

What and why

just gate-ptx-spill fails on a GB10 with main's cc 12.1 tables. 87a8205 added the group-of-7 kernels' entries to them with the cc 8.6 values, 0 and 0, and its PIN line says they were not measured on cc 12.1 yet. Five of the six new rows hold on a GB10. gqa_prefill_flash_g7_q8 does not: it has 160 spill bytes and 80 JIT local bytes at both sm_121a and sm_121.

This PR re-pins that one row in sm_121a-cc12.1.tsv and sm_121-cc12.1.tsv to 160 and 80 (spill bytes, then JIT local bytes), with a PIN(2026-10-27) line each. It changes no code and no other row.

Release notes: internal: the cc 12.1 spill tables match the GB10 scan for the group-of-7 prefill kernel.

Code shape

  • No second copy. The change edits table rows only.
  • Model code holds only architecture facts. No model or common code changed.
  • Dead code is gone. The change makes nothing unused.
  • No silent failure. No code changed.
  • Comments state what is true now. The two new comment lines are PIN(...) lines, the one form the tables date.
  • No relaxed gate. Each pin is the measured value and carries PIN(2026-10-27): and its reason. No other row or tolerance moved.
  • cargo fmt and cargo clippy are clean on what I touched: the change touches no Rust, so neither ran.

Duplication found or removed (path:line): none.

What I ran

The head is b81d9cdd66b9cc054b86e87a38990e9d835b5fee, one commit on main 3d83a3a891f15c2c9cc69c7ec8cbca9e98867160. The gate runs below used an earlier version of this commit, dd3142ade3ccef53e94a44024a8a8457e59cc1d9, on main 63836db82227c1b4d1f6750b2b114b36e833fb58. Since then I only removed a sentence from the two PIN comments, and the table values are the same, so I did not rerun them on this head.

On the GB10 described below, I ran BLOOMERY_ARCH=<arch> just gate-ptx-spill for sm_121a and for sm_121, once with the earlier head's tables and once with main's tables, using the same build.

With main's tables, both runs fail:

sm_121a: generate_ds41 gqa_prefill_flash_g7_q8 jit_local=80 pinned=0 ABOVE
sm_121a: generate_ds41 gqa_prefill_flash_g7_q8 spill=160 pinned=0 ABOVE
sm_121a: SPILL arch=sm_121a tables=base rc=1
sm_121: generate_ds41 gqa_prefill_flash_g7_q8 jit_local=80 pinned=0 ABOVE
sm_121: generate_ds41 gqa_prefill_flash_g7_q8 spill=160 pinned=0 ABOVE
sm_121: SPILL arch=sm_121 tables=base rc=1

With the re-pinned tables, both runs end with rc=0:

sm_121a: SPILL arch=sm_121a tables=head rc=0
sm_121: SPILL arch=sm_121 tables=head rc=0

The generate_ds41 summary line reports entries=468 pinned=468 for sm_121a and entries=459 pinned=459 for sm_121, with no violations. gate_qwen3vl_tower also passes (entries=26 pinned=26 nonzero=none violations=0 PASS).

I did not run just contrib-check --tier t0 or the clippy ratchet. No timed run applies: the change edits only the pin tables and no kernel or launch path.

Hardware

NVIDIA-SMI 595.84                 Driver Version: 595.84         CUDA Version: 13.3
|   0  NVIDIA GB10                    On  |

The scan used ptxas 13.3.73 and JIT for cc 12.1.

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

…local on sm_121a and sm_121

The group-of-7 entries came in at the cc 8.6 scan's values. The first GB10
scan (ptxas 13.3.73, driver 595.84) measures gqa_prefill_flash_g7_q8 at 160 B
spill and 80 B JIT local on both cc 12.1 builds; every other new entry holds 0.
@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 27, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: two table rows move to the measured GB10 values, each with a dated PIN line and a gate run that shows the old value failing and the new value passing.

Checked

  • Duplicates: 0 new functions, types or constants; the diff edits two table rows and adds two comment lines. No Rust changed, so dryer and crapper did not run.
  • Complexity: not applicable.
  • Silent failure: 0 sites. The row is read by gate-ptx-spill; a wrong value turns the gate red, and these values are the measured ones (spill=160, jit_local=80 at both arches).
  • Tests: no test changed. Mutation check on the gate: the old row 0 0 reproduces the ABOVE failure in the PR body, so the gate catches a wrong pin. The new row 160 80 fails if the kernel's spill grows above 160 B or its JIT local above 80 B. It does not fail if they shrink.
  • Gates: one pin moved per file, sm_121a-cc12.1.tsv:550 and sm_121-cc12.1.tsv. Each has PIN(2026-10-27):, the old and new values, the tool versions, and the reason. The old value came from the cc 8.6 scan, so "first GB10 scan of the entry" is evidence that it was wrong. Column order (spill, then jit_local) matches the table header. No other row moved.
  • Adversarial: the same row in sm_86-cc12.1.tsv and tools/ref/ptx-shapes.tsv is a different card's scan and stays as is. No doc or comment in the tree states 0 spill for this entry.
  • Escape catalog: no pattern matched.

Notes

  • The gate runs used the earlier head dd3142ade3 on an older main. The PR body says only a sentence in the two PIN comments changed since. The diff agrees: the table values are the same.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 01caf33 into midagedev:main Oct 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant