Skip to content

Shaders: serialize identical in-process pipeline builds - #160

Draft
bmjask wants to merge 1 commit into
stack/156-share-idle-allocatorsfrom
stack/157-serialize-inprocess-builds
Draft

bmjask wants to merge 1 commit into
stack/156-share-idle-allocatorsfrom
stack/157-serialize-inprocess-builds

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #159.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates shaders: serialize identical in-process pipeline builds as one reviewable step in the redesign.

Upstream overlap

This adapts only the in-process serialization guard from draft upstream PR xcl-dev#2712 and is retained only as an internal reconciliation draft.

What is in it

  • 8a6f2564 is the cleaned-stack form of integrated commit 47c6c5ba.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

@bmjask
bmjask force-pushed the stack/157-serialize-inprocess-builds branch 3 times, most recently from de68b6a to dbfba6e Compare November 27, 2026 05:14
When the driver cache path or its cross-process claim is unavailable, identical preparation workers could enter the driver together and multiply its peak memory and compile contention.

Key in-flight work by the complete pipeline cache identity and make later local workers wait for the active attempt. The RAII slot is released and waiters are notified on every return and panic; completed identities are not retained, so later cache-validation passes and retries after failures remain unchanged.

Adapted from PR xcl-dev#2712 by Bloxive.

Co-authored-by: Bloxive <ptmshu23@gmail.com>
Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/157-serialize-inprocess-builds branch from dbfba6e to a2c3414 Compare November 27, 2026 12:35
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