Skip to content

contract: the nvcc usage table moves to registry_cuda_sets.zig, so registry.zig has room - #3865

Merged
ashhart merged 2 commits into
mainfrom
lead/registry-room
Nov 19, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/registry-room

Conversation

@ashhart

@ashhart ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

zig/src/core/contract/registry.zig was at exactly 600 lines, the project's file limit, so any pull request adding a kernel contract entry failed the lean check. #3403 does, and so will the GLM Metal stack #3418-#3458.

This moves the cuda_sets table (the per-release usage overrides for nvcc 13.2 and 13.3, 105 lines) unchanged into a new registry_cuda_sets.zig, following the folder's existing registry_*.zig split. registry.zig keeps the doc comment and re-exports the table under the same name, so every caller is unchanged. registry.zig goes from 600 to 496 lines.

No behaviour change: the registered sets, records, controls and their order are identical.

Checked on this head: zig build test-kernel-contract, zig build check-release-paths, zig fmt --check, and the lean check (no new problems).

  • Synthena

…_sets.zig, giving registry.zig room

registry.zig sat at 600 lines, the source limit, so any PR adding a registry entry failed the lean check. The
cuda_sets table (the 13.2 and 13.3 usage overrides, 105 lines) moves unchanged into registry_cuda_sets.zig beside
the other registry_*.zig parts; registry.zig re-exports it under the same name and keeps Override, CudaSet, setFor
and usageFor. registry.zig is 496 lines. The registered records, sets and their order are unchanged.
@ashhart
ashhart merged commit e9ec8c9 into main Nov 19, 2026
1 of 10 checks passed
@ashhart
ashhart deleted the lead/registry-room branch November 19, 2026 09:58
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.

1 participant