Skip to content

ptx-shapes: the eight cc 12.1 entries the 9df9e7ce backend moved, at the GB10 scan's spill and JIT local - #839

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-ptx-shapes-gb10-repin
Oct 26, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-ptx-shapes-gb10-repin

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

GB10 카드에서 빨갛게 남은 PTX spill gate의 pin 값 여덟 개를 새 backend의 측정값으로 다시 맞춥니다.

What and why

On GB10 (cc 12.1), just gate-ptx-spill is red on main. The backend moved to NVIDIA/cuda-rust 9df9e7cef561 (stable 1.99.1), and the sm_86 table was re-pinned for it, but the two cc 12.1 tables were not. Eight entries now have a different spill or JIT local size, so sm_121a-cc12.1.tsv reports 12 violations and sm_121-cc12.1.tsv reports 11 (mxfp8_w8a8_norm_gate is not in the sm_121 build).

This re-pins those rows to the values scanned on GB10, in both tables. Each changed row gets a PIN(2026-10-26): line with the old and new values and the conditions. No existing PIN line is removed and no other row changes. The diff is two files under tools/ref/ptx-shapes/.

Release notes: internal: re-pins the cc 12.1 PTX shape tables for the current backend.

Code shape

  • No second copy. Only table rows change; no logic is added. Duplication found or removed: none.
  • Model code holds only architecture facts. No model code changes.
  • Dead code is gone. Nothing was made unused.
  • No silent failure. No code changes.
  • Comments state what is true now. The new lines are PIN(...) lines, which the tables already carry.
  • No relaxed gate. No band, tolerance or lint moved. Each re-pinned row carries PIN(2026-10-26): with its reason.
  • cargo fmt and cargo clippy: no Rust file is touched, so they were not run.

What I ran

On the GB10, before the change (base tree 904145f, which differs from this base only by a metal: commit that does not touch tools/ref/ptx-shapes/ or crates/gpu):

BLOOMERY_ARCH=sm_121a just gate-ptx-spill
violations=12 FAIL
BLOOMERY_ARCH=sm_121 just gate-ptx-spill
violations=11 FAIL

After the change, same two commands:

BLOOMERY_ARCH=sm_121a just gate-ptx-spill
ptx-spill bin=generate_ds41 entries=461 pinned=461 ... violations=0 PASS
ptx-spill bin=gate_qwen3vl_tower ... violations=0 PASS
BLOOMERY_ARCH=sm_121 just gate-ptx-spill
ptx-spill bin=generate_ds41 entries=452 pinned=452 ... violations=0 PASS
ptx-spill bin=gate_qwen3vl_tower ... violations=0 PASS

The rest of the repository gates were not run for this change, and no timing measurement applies, since only pinned reference values change. The gate was measured on the tree before a rebase onto the current base; the rebase did not change either table file.

Hardware

  • Card and driver: NVIDIA GB10, 595.84
  • ptxas: 13.3.73
  • JIT: cc 12.1, CUDA 13.3
  • Arch: sm_121a and sm_121

CPU and RAM were not recorded for this run.

AI help

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

@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 26, 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: the diff changes only pinned values in two cc 12.1 tables, each changed row has a dated PIN(2026-10-26): line with old value, new value and conditions, and the counts in the PR body match the diff.

Non-blocking

⚠ New spill in two previously spill-free kernels: sm_121-cc12.1.tsv:418 and sm_121a-cc12.1.tsv:445. qwen3moe_router_norm_m and _prefetch go from 0/0 to 32 B spill and 8 B JIT local. Four other rows also move up (kq_gate_up_act_q5k_tiles +16 B spill, q5k_gemv_tiles +8 B, ds41_expert_gate_up_tiles +8 B local, mxfp8_w8a8_norm_gate +8 B local). The PR body says no timing applies. The code-gen change came with the backend bump, not with this PR, so the pin is correct. Please link where that bump showed that these kernels do not slow down on the GB10 (the gate-* timing for the router and the Q5_K tile path), or say it was not measured.

⚠ GPU evidence is partial: the PR body gives "NVIDIA GB10, 595.84", not the nvidia-smi line, and only the base commit 904145fe, not the head commit that was measured. The command output is elided with .... CONTRIBUTING.md asks for the full lines. This is a question to the author, not a finding against the tables.

Checked

  • Duplicates: 0 new functions, types or constants; 7 changed rows in sm_121 and 8 in sm_121a (the mxfp8_w8a8_norm_gate row only in sm_121a). dryer and crapper did not run (no Rust file changed).
  • Counts: sm_121a has 12 field mismatches (expert_gate_up_tiles 2, kq_q4k_tiles 2, kq_q5k_tiles 1, mxfp8 1, q4k_gemv 1, q5k_gemv 1, router_norm_m 2, router_norm_m_prefetch 2); sm_121 has 11 without mxfp8, which exists only in the sm_121a table. This matches the PR body.
  • Silent failure: 0 code sites; no code changes.
  • Tests: none added or changed; the gate itself (gate-ptx-spill) is the check, and any later PTX change turns it red against these rows.
  • Gates: 7 pins moved in sm_121 and 8 in sm_121a. Spill or local goes up in some rows, down in others (kq_gate_up_act_q4k_tiles, q4k_gemv_tiles, ds41_expert_gate_up_tiles spill) and stays in others. Every moved row has a dated PIN(2026-10-26): line with the reason (backend moved to 9df9e7cef561) and the conditions (ptxas 13.3.73, GB10, driver 595.84). The older PIN lines stay, so history is traceable. No other row changed. The sm_86 table was not touched.
  • Escape catalog: no pattern matched (no shell or Rust change).

Notes

  • I could not run the scan, so the new values are trusted from the PR body's gate output.

🔨 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 156c4a1 into midagedev:main Oct 26, 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