Skip to content

contract: df_sumn's nvcc 13.3 record is glm_cuda_records.zig's alone - #4291

Merged
ashhart merged 5 commits into
ashhart:mainfrom
Bizuayeu:pr/contract-dfsumn-133
Nov 21, 2026
Merged

ashhart merged 5 commits into
ashhart:mainfrom
Bizuayeu:pr/contract-dfsumn-133

Conversation

@Bizuayeu

@Bizuayeu Bizuayeu commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

#3953 added a df_sumn line to nvcc_133_records.zig (cuda_133) with 33 registers on sm_120 and sm_121, measured on 813ff4ccbf, before the kernel gained its dependent-launch wait (#3776). Main already records df_sumn at 13.3 in glm_cuda_records.zig (cuda_133, 40 on both), and registry_joins.nvcc_133_after joins nvcc_133_records.zig after it, so registry.usageFor takes the later line and the record reads 33. This removes that one line, so the record is glm_cuda_records.zig's 40 again; the other records #3953 added are unchanged.

Checks on this head

  • Head commit: a4c01727ae (the record line, its changelog line, and the line's PR number). The two commits after e0de8b4391 change only CHANGELOG.md, so the checks below ran on 57fb853063 and hold for this head.
  • Lean checker, through tools/pr_check.py --base dc71af9d22: 168 on the base and 168 on this head, 0 new findings; 0 errors.
  • Tests run: zig build test-kernel-contract: 38 of 38 steps, 269 of 269 tests. pytest from the root -q -rs: 670 passed, 94 skipped. Main's latest no-GPU run (37fa51d239) has 671 passed and 93 skipped of the same 764; two of the skips here come from this interpreter's Unicode 15.0.0 (tools/zig/test_nfkd_tables.py), and nothing in this branch touches Python.
  • tf-cuda-test kernel-contract-limits on five-SM fatbins built by nvcc 13.3 (one GB10): df_sumn reads record current at 40 on sm_120 and sm_121. A tree with main's records, built and checked the same way, reads record stale there: 40 against 33. The run's other 479 stale lines are main's own, since this branch only removes one line.
  • CI: runs on this pull request.
  • Not run, and why: nothing past the contract, since no kernel, launch or arithmetic changes.

Receipt

n/a: contract records only. No kernel, launch or arithmetic changes, so nothing reaches inference.

Checklist

  • ✓ The title and description match the head commit, including the receipt and the stack.
  • ✓ New tests fail before the change, pass after it, and skip cleanly without their dependency (no new test: the existing contract suite reads the record).
  • ✓ Comments and docstrings are one line. No measurements or history in the source.
  • ✓ No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

@AIFlowML

Copy link
Copy Markdown
Contributor

I trial-merged 57fb85306 into 5f53c445e cleanly. On M5 Max with Zig 0.17.0, zig build test-kernel-contract -Dcpu=apple_m1 -j4 --summary all passed 40 build steps and all 269 tests. The diff removes only the later 33-register df_sumn override, leaving the GLM nvcc 13.3 record at 40 for sm_120 and sm_121. This rerun checks the host contract. The physical register measurement is the GB10 receipt in the description.

Igor Lessio - AIFLOW LABS

ashhart and others added 5 commits November 21, 2026 14:19
ashhart#3953 recorded df_sumn at nvcc 13.3 with 33 registers on sm_120 and sm_121, measured before the
kernel gained its dependent-launch wait. glm_cuda_records.zig already records it at 13.3 with 40
on both, and nvcc_133_records.zig is joined after it, so the later line won and the record read 33.
This removes that line; the other records ashhart#3953 added are unchanged.
@ashhart
ashhart force-pushed the pr/contract-dfsumn-133 branch from a4c0172 to 4620e1c Compare November 21, 2026 14:19
@ashhart
ashhart merged commit 9d77abe into ashhart:main Nov 21, 2026
1 of 11 checks passed
ashhart pushed a commit that referenced this pull request Nov 21, 2026
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Thank you @Bizuayeu. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants