README: XCL_PIPELINE_THREADS is only for xcl shaders --pipelines #1952

Open
tikD1337 wants to merge 1 commit from upstream-pr/1962 into main
tikD1337 commented 2026-11-24 23:58:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tikD1337 on 2026-11-24T23:58:06Z.


XCL_PIPELINE_THREADS is read in one place, Pipelines::new in crates/xcl/src/shaders.rs, where it limits the driver compiles of xcl shaders --pipelines (default 4). The README does not mention it, and a retail-title launch script set XCL_PIPELINE_THREADS=10 expecting more pipeline builds during xcl run, where it does nothing. This adds one bullet saying so and naming the variables that do apply to xcl run.

What is in it

  • README.md: a bullet after the huge-pipeline paragraph. XCL_PIPELINE_THREADS is for --pipelines only. In xcl run the relevant variables are XCL_DXC_THREADS (dxc::compile_threads: every core but one, at most 64), XCL_HUGE_PSO_CONCURRENCY (real.rs, described just above) and XCL_PSO_PRELOAD=0 (pso_async::preload).

Tested

  • Docs only. Each statement was checked against main 62265d3 with grep for the variable's readers and defaults.
  • NVIDIA GeForce RTX 4070 Ti SUPER 16 GB, driver 621.01 (32.0.16.2101), AMD Ryzen 5 7600, 31.6 GB RAM, Windows 11 Pro 26300, rustc 1.100.0 stable-x86_64-pc-windows-msvc, DXC 1.9.2602.17, debug.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 on this head 5011a26: 986 passed, 0 failed, 45 ignored (20 test binaries).
  • SKIPPED: the wave64 variants (no wave64) of gpu::recomp::lower::tests (4), lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu, f16/f32/f64/integer_programs_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware. Also the per-lane forms refused in f16_programs_on_the_gpu / f32_programs_on_the_gpu (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32), and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Regression run

  • None: README only, no runtime file changed.

Not tested

  • Nothing to run for a README change. Not built on Linux or macOS.

AI use

  • Claude Code with Claude Opus 5.5: found the variable's only reader while triaging a retail run's logs, wrote the bullet and this description, and ran the tests. I checked each statement against the code.
<!-- greyfinch-sync:ivall/xcl:issue:5482428624 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1962). Originally posted by [tikD1337](https://github.com/tikD1337) on 2026-11-24T23:58:06Z. --- `XCL_PIPELINE_THREADS` is read in one place, `Pipelines::new` in `crates/xcl/src/shaders.rs`, where it limits the driver compiles of `xcl shaders --pipelines` (default 4). The README does not mention it, and a retail-title launch script set `XCL_PIPELINE_THREADS=10` expecting more pipeline builds during `xcl run`, where it does nothing. This adds one bullet saying so and naming the variables that do apply to `xcl run`. **What is in it** - `README.md`: a bullet after the huge-pipeline paragraph. `XCL_PIPELINE_THREADS` is for `--pipelines` only. In `xcl run` the relevant variables are `XCL_DXC_THREADS` (`dxc::compile_threads`: every core but one, at most 64), `XCL_HUGE_PSO_CONCURRENCY` (`real.rs`, described just above) and `XCL_PSO_PRELOAD=0` (`pso_async::preload`). **Tested** - Docs only. Each statement was checked against `main` `62265d3` with `grep` for the variable's readers and defaults. - NVIDIA GeForce RTX 4070 Ti SUPER 16 GB, driver 621.01 (32.0.16.2101), AMD Ryzen 5 7600, 31.6 GB RAM, Windows 11 Pro 26300, rustc 1.100.0 `stable-x86_64-pc-windows-msvc`, DXC 1.9.2602.17, debug. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4` on this head `5011a26`: 986 passed, 0 failed, 45 ignored (20 test binaries). - SKIPPED: the wave64 variants (`no wave64`) of `gpu::recomp::lower::tests` (4), `lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `f16/f32/f64/integer_programs_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`. Also the per-lane forms refused in `f16_programs_on_the_gpu` / `f32_programs_on_the_gpu` (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32`), and `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). **Regression run** - None: README only, no runtime file changed. **Not tested** - Nothing to run for a README change. Not built on Linux or macOS. **AI use** - Claude Code with Claude Opus 5.5: found the variable's only reader while triaging a retail run's logs, wrote the bullet and this description, and ran the tests. I checked each statement against the code.
raylitebull commented 2026-11-25 02:09:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:54:29Z.


Audit & CI note on 5011a26:

  • README.md doc clarification (XCL_PIPELINE_THREADS applies only to xcl shaders --pipelines, distinct from XCL_DXC_THREADS / XCL_HUGE_PSO_CONCURRENCY / XCL_PSO_PRELOAD) audited and CI workflow approved (running).
<!-- greyfinch-sync:ivall/xcl:comment:7150097977 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1962#issuecomment-7150097977). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T01:54:29Z. --- Audit & CI note on `5011a26`: - `README.md` doc clarification (`XCL_PIPELINE_THREADS` applies only to `xcl shaders --pipelines`, distinct from `XCL_DXC_THREADS` / `XCL_HUGE_PSO_CONCURRENCY` / `XCL_PSO_PRELOAD`) audited and `CI` workflow approved (running).
DavidM1911 commented 2026-11-25 04:10:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T03:09:07Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7151639802 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1962#issuecomment-7151639802). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T03:09:07Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-28 08:02:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:02:26Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7236322383 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1962#issuecomment-7236322383). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:02:26Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 07:09:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:09:30Z.


Triage (#1607) – head 5011a26

No open or merged PR documents this. #2382 and #2450 document other xcl shaders flags.
The new README text is out of date for current main:

  • shaders.rs pipeline_threads() no longer defaults to 4. The default is now based on the core count and memory (cores and GB / 2, clamped to 1-32).
  • XCL_PIPELINE_THREADS is also read by the --graphics-records workers and by the corpus runs (corpus_threads), so 'read only by xcl shaders --pipelines' is wrong.
    Recommendation: keep open (update the default and the list of readers).

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303712309 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1962#issuecomment-7303712309). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:09:30Z. --- **Triage (#1607)** – head 5011a26 No open or merged PR documents this. #2382 and #2450 document other `xcl shaders` flags. The new README text is out of date for current main: - `shaders.rs` `pipeline_threads()` no longer defaults to 4. The default is now based on the core count and memory (cores and GB / 2, clamped to 1-32). - `XCL_PIPELINE_THREADS` is also read by the `--graphics-records` workers and by the corpus runs (`corpus_threads`), so 'read only by `xcl shaders --pipelines`' is wrong. Recommendation: keep open (update the default and the list of readers). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1962:upstream-pr/1962'
git switch 'upstream-pr/1962'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1962'
git switch 'upstream-pr/1962'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1962'
git switch 'upstream-pr/1962'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1962'
git switch 'main'
git merge --squash 'upstream-pr/1962'
git switch 'main'
git merge --ff-only 'upstream-pr/1962'
git switch 'main'
git merge 'upstream-pr/1962'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1952
No description provided.