Repository navigation
contract: the nvcc usage table moves to registry_cuda_sets.zig, so registry.zig has room - #3865
Merged
Merged
Conversation
ashhart
added a commit
that referenced
this pull request
Nov 19, 2026
…_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
force-pushed
the
lead/registry-room
branch
from
November 19, 2026 09:57
967bc36 to
fed5e62
Compare
Merged
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
zig/src/core/contract/registry.zigwas 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_setstable (the per-release usage overrides for nvcc 13.2 and 13.3, 105 lines) unchanged into a newregistry_cuda_sets.zig, following the folder's existingregistry_*.zigsplit.registry.zigkeeps the doc comment and re-exports the table under the same name, so every caller is unchanged.registry.ziggoes 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).