README: document XCL_PREPARE_WORKERS and XCL_PIPELINE_THREADS #3113
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3113"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-28T09:11:06Z.
What is in it
--pipelinessize-cap bullet.XCL_PREPARE_WORKERS(processes building a pack's compute pipelines before a title starts, clamped 1–32, default from processor count and free commit) andXCL_PIPELINE_THREADS(driver compiles at once, default derived from processor count and RAM). Verified againstprepare_workers()/workers_for()andpipeline_threads()/default_pipeline_threads()in crates/xcl/src/shaders.rs ate429936.Tested
e429936and checked the README had no mention of either variable. Documentation only; no code changed.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:32:17Z.
Triage (#1607) – head
25be5d9#1962 documents
XCL_PIPELINE_THREADSdifferently: it says onlyxcl shaders --pipelinesreads it, with a default of 4. On main,shaders.rs::default_pipeline_threadsderives the default from cores and RAM, andcorpus_threads/ the preparation workers read it too, so this PR's text matches main and #1962's does not. TheXCL_PREPARE_WORKERStext matchesprepare_workers/workers_for.Nit: the new item is nested under the
--pipelinessize cap bullet, which is about something else.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:13:47Z.
Review (head
25be5d9a, diff read; README only, nothing to build or run):XCL_PIPELINE_THREADSis only floored at 1 (shaders.rs~2126threads.max(1)), not capped at 32, and the derived value ismin(cores, RAM GB / 2)clamped to 1-32 (default_pipeline_threads~2122). Saying "unset: the logical processors or half the installed RAM in GB, whichever is lower, 1-32" would be exact. It also applies toxcl shaderspipeline builds and preparation, which the bullet's heading already implies.XCL_PREPARE_WORKERSisn't trimmed (~3475), so" 4"counts as unset. Minor.Fine:
prepare_workersclamps a set value to 1-32, and the unset rule (logical processors less four, at most 32, at most one per 3 GiB of free commit, at least 1,workers_for~3491) matches the text. The README doesn't name either variable yet. Looks good to merge.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.