Repository navigation
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
luckyteagirl
left a comment
There was a problem hiding this comment.
At head cd9fb4d6bf752c655a196b4e573d21ae5c908537, READY_COMPUTE is keyed only by the raw PSO address. The final pso_release calls the original COM Release first (real.rs:1644-1648) and only then calls forget_pso, which removes the new ready entry (real.rs:1753-1754). If thread A's Release of PSO A returns zero and pauses, thread B can create a synchronous compute PSO B at the freed address and register its key (real.rs:5068-5073); A's late cleanup then erases B's key. B's first bind will be absent from the XCL_PSO_MANIFEST=1 output. Could cleanup be tied to the PSO generation/registration being released, or synchronized across final release and new registration so an older release cannot remove the newer entry? A small address-reuse interleaving test would cover the new map.
This is a source-derived, opt-in manifest race, not a native reproduction. The broader address-keyed cleanup pattern predates this PR; the missing ready-compute first-use event is new here. AI use: OpenAI Codex (GPT-6.2 Sol) found the interleaving; I checked the exact-head release, creation, and manifest paths before posting.
…ines (xcl-dev#2088) Part of xcl-dev#2088, workstream 1 (the recording only): which pipelines a title needs before each point of its start, in the order it needs them, and which it had to wait for. With XCL_PSO_MANIFEST=1, pso-manifest.txt beside used-pipelines.txt (a new file each run) gets one tab-separated event a line, numbered in file order with the milliseconds since the first: - use: a pipeline's first use (pso_async's note_use), its shader-set key, compute or graphics, and whether it was built by then (ready / cold); - build: each driver compile (driver_compile_identified): kind, DXIL bytes, the console record's hash and whether a driver blob was supplied, time in the driver and time waiting for a compile slot; - present: the title's presents at milestones (1, 2, 4 ... 1024, then every 1024th), so a manifest shows where presents stop and whether they return. A first use's line is written, under the manifest's lock, before the pipeline is marked used: a second bind of it (and a present after that) comes after the line in the file (found in review by ettehn). Recording only, off by default: nothing is built, ordered or skipped differently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Track eager ready handles and first binds that skip a pending entry, so an ordered manifest can select the complete prefix through a Present event.
cd9fb4d to
1ee46bd
Compare
|
@Anon64 Thanks for offering to retest on your RTX 3060 in #2096. The updated head is Thanks to luckyteagirl for spotting the address-reuse race. This head records the registration before COM release and removes it only if the same registration is still present. The deterministic regression fails with address-only cleanup and passes on this head. Windows CI also passed. Assisted by OpenAI Codex (GPT-6.2 Sol). |
Stacked on #2096. This PR's own commit is
1ee46bd, on top ofb6a294d(the #2096 patch rebased ontomainb49be183).A synchronously created compute pipeline could miss its first-use record, leaving milestone precompilation with an incomplete prefix. The follow-up records first use for eager and ready compute pipelines while preserving the existing used-pipeline history.
What is in it
useevent per pipeline across repeated binds, including the current non-waitingSetPipelineStatepath.Tested
cargo build --workspace --offline --locked -j 2passed.cargo test --workspace --offline --locked -j 2 --no-fail-fast -- --test-threads=1 --nocapture: 1,436 passed, 4 failed, 47 ignored, with 25 explicit GPU skips in the pass count. The four DXIL fuzz seeds (70, 545, 1019, 1507) failed withCreateComputePipelineStatereturning0x8007000Eon both this branch and cleanmainb49be183.gpu_compute_e2e: seven ran and passed; one reported a heap-window skip. Separate release runs recorded one first-use event for cold eager, warm eager, and lazy creation. Tracing off produced no manifest.Regression run
Windows release, same retail title and 20-second startup run, no scripted input. XCL networking was disabled. Each run used a fresh XCL data/cache directory.
Main:
PR:
Not tested
AI use