Repository navigation
feat(server): a backend's std options reach the server binary - #696
Merged
Merged
Conversation
The server's root takes std.Options from the backend when the backend declares them (server/std_options.zig), and the defaults otherwise, so Metal and CUDA builds are unchanged. HIP's RCCL path needs this: RCCL and HIP start threads that a per-thread alternate signal stack leaves too little room to run, so the HIP backend will declare signal_stack_size = null.
This was referenced Oct 11, 2026
Merged
Owner
|
Thank you, @BlivionIaG. Splitting this out of #655 made it easy to land on its own. Your commit What we checked:
We added a CHANGELOG line that points at the RCCL work in #655. Looking forward to that one. |
Contributor
Author
Perfect, we are getting closer to RDNA2/3 support 🔥 |
BobClawblaw
pushed a commit
to BobClawblaw/TensorFold
that referenced
this pull request
Oct 12, 2026
BobClawblaw
pushed a commit
to BobClawblaw/TensorFold
that referenced
this pull request
Oct 12, 2026
…it, and ashhart#657's and ashhart#696's numbers and credits
Closed
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
ashhart#696 landed above as 1d7fd39c6 (the author's commit, rebased onto this candidate). This keeps the PR's own head commit in the history, with no change to the tree.
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
…it, and ashhart#657's and ashhart#696's numbers and credits
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.
What this changes
The server's root (
server/main.zig) now takesstd.Optionsfrom the backend when the backend declaresstd_options, and the defaults otherwise (server/std_options.zig, one function and its test). The Metal and CUDA backends declare none, so their binaries are unchanged.The HIP backend's RCCL path needs it: RCCL and HIP start threads of their own, and Zig's per-thread alternate signal stack leaves them too little room to start (
pthread_create() failedat--tp 2). With this change the HIP build can declaresignal_stack_size = nullfor its own binary. That declaration lands with the RCCL slice (#655); this PR only lets a backend's options through.It is split out of #655 because it touches the shared server.
Receipt
mainat e7c523e, head c240bb9. Zig 0.17.0, on macOS (Apple silicon) and Linux 7.1.7.std_options, so they keepstd.Options{}.zig build test test-golden -Dcpu=apple_m1: 143/143 steps, 256/256 tests; golden 309/319 equal, 0 unexpected.zig build test: 39/39 steps, 452/452 tests.zig fmt --checkis clean.lean_check.py: 534 problems, the same asmain.maindeclares options).Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (No engine behaviour changes.)