Skip to content

Shaders: claim driver-cache builds across processes - #154

Draft
bmjask wants to merge 1 commit into
stack/150-heap-flat-cache-identityfrom
stack/151-cross-process-build-claims
Draft

bmjask wants to merge 1 commit into
stack/150-heap-flat-cache-identityfrom
stack/151-cross-process-build-claims

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #153.

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

What and why

This unit isolates shaders: claim driver-cache builds across processes as one reviewable step in the redesign.

Upstream overlap

This is part of upstream PR xcl-dev#2712 and is retained only as an internal reconciliation draft.

What is in it

  • 97d371f7 is the cleaned-stack form of integrated commit 43e6b523.

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/151-cross-process-build-claims branch from 97d371f to dd41bcf Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/150-heap-flat-cache-identity branch from 01c1592 to c1a6776 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/151-cross-process-build-claims branch from dd41bcf to 36a71d2 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/150-heap-flat-cache-identity branch from c1a6776 to e9b2309 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/151-cross-process-build-claims branch from 36a71d2 to 76b2790 Compare November 27, 2026 05:14
Concurrent preparation processes could hand the same missing or stale compute pipeline to the driver at once. Coordinate each exact driver-cache path with an exclusive Windows delete-on-close handle, which also releases ownership immediately when a worker is terminated.

Filesystem failures remain fail-open so preparation still works without a writable shared cache. Adapted as the first separable stage of PR xcl-dev#2712 by ZekkJJ.

Checked with the Windows GNU cross-target cargo check; native Windows claim tests and GPU execution were unavailable.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/150-heap-flat-cache-identity branch from e9b2309 to 8b27d10 Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/151-cross-process-build-claims branch from 76b2790 to 6a1bc3d 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