D3D12.X: a dispatch waits for its pipeline at the submit, not in the bind #2118
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2118
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2118/head"
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?
@Royalflamejlh on GitHub · 2026-11-25 05:00 UTC · original
Royalflamejlh:fix/compute-bind-defer→main· +432 −33 · 7 files · 4 commits · merged 2026-11-25 19:51 UTCA compute pipeline that is not built yet was waited for in
SetPipelineState: the title's thread stood there, built it itself, and only then reached the next one. This moves that wait toExecuteCommandLists, so the title's recording threads go on and the pipelines a frame binds reach the workers together. A dispatch whose pipeline fails to build is skipped and counted, as before, andXCL_PSO_WAIT_MSstill bounds the wait. Alone it does not finish more builds (31 of 3 s or more after the world start against 34 from cold caches, 1 run each): the big ones still take turns. The lane that lets them run together is #2141, stacked on this; with both, 69. Part of #505 and #1833; scheduling under #2088.SetPipelineStatebinds what is there. ADispatch, or anExecuteIndirectthat dispatches, whose pipeline is still being built ends the list's segment, as a mid-listWaitafter aWrite64already does, and gets a closed segment of its own between that one and the next; a translated dispatch sets its own root signature, views and pipeline, so it can be recorded later than the calls around it. At the submit (andKickoffX) each such segment is reset and its call recorded through the wait the bind used to make.What is in it
list_x.rs:try_split_for_wait's body becomessplit(list, dispatch), which opens the next segment without waiting for the bound pipeline (also for a mid-listWait);defer,deferred_segment,record_deferred. A title list's deferred segments record on an allocator of its own (own_alloc), because the title's may be recording another list by the submit;on_releasedoes not release it while the GPU may still run from it (alloc_pool::in_flight; it is then never released).wait_expired: every armed GPU wait's clock restarts while any thread of the title waits for a build (pso_async::title_held), and runs again when none does. Without it a queue waiting for a value whose list stood in such a submit was released after 5 s, out of order (3 lines a run in an earlier form, 0 since). The watchdog still releases a stalled queue when no build is waited for: an earlier form with this logic, in a run withXCL_PSO_WAIT_MS=50where no call was put off, logged 40 such releases (a run of the unchanged merge with that budget logged 36).bind.rs:dispatchandexecute_indirectput the call off when its pipeline is unbuilt; where the list cannot be split (a bundle, no wrapper, no allocator, predication set, the segments used up, or the call's own command list cannot be made, as on a vkd3d-proton without the relaxed-vtable change of #175) they wait where they are, as before.pass_arena: a list's segments share one argument arena (a 256 KiB block each filled the coherent window in an earlier form).real.rs:cl_set_pipeline_stateno longer waits;q_execute_command_listsandkickoff_xrecord a list's deferred segments first.pso_async.rs:need_by_submitandNEEDED: the workers take a put-off pipeline before their queue (behind a start-up backlog the submit thread built them itself, one after another).want, used byrecord_deferredfor the next four put-off pipelines as it goes (WANTED_AT_ONCE): the leave a title thread's own build has today, so about as many are in the driver at once as the title's threads had there.title_list.rs:push_segment;can_splittakes a count; 1,024 extra segments per recording (two for each put-off call) instead of 32 (the second commit,b7d0ef2; the first had 256).real/dispatch_chain.rs,list_x.rs(the third commit, after pvfreis's review): at the submit, a put-off call's segment goes on in the split scratch of the segment recorded before it (list_follows, as a chain after a chain on one list does, with the UAV barrier that chain records), somain's bound on all split scratch (0829441) holds for them; and a title list's own allocator is reset at the list's nextResetoncealloc_poolsays the GPU is done with it, so their recordings do not outlive them.a_dispatch_with_a_pipeline_still_building_waits_at_the_submit(a build that returns no pipeline, and not before the test lets it): without the change the dispatch waits for the build; with it 210 dispatches on one list are put off (421 segments), Close returns with the build still running,record_deferredwaits for it and counts the dispatches as skipped, and the segments run on a queue. With 256 segments the 129th dispatch waits (dispatch 129 waited for the build).a_gpu_wait_does_not_expire_while_the_title_is_held_for_a_build.a_pipeline_a_submit_needs_is_built_before_the_queue(built 248th of 249 without the change).a_list_recorded_after_another_goes_on_in_its_scratch(red withlist_followsdoing nothing:the list after it made a scratch of its own, on the 8 GB Windows card in debug).KickoffXand the mid-listWaitsplit do, so it resolves as visible. Known and left: withXCL_ALLOC_SWAP=0the segments' own allocator is reset without waiting for the GPU; that allocator is never released when its list is released with work still on the GPU.Reset,ClearState,KickoffX's re-open of the list andCreateCommandListwith a compute pipeline wait where they did.Beside #2001, #1652, #2114, #889, #2130, #2096. #2001 also stops the bind waiting and waits at the first
Dispatchinstead, on the title's thread, with the build on a worker; #1652 bounds the bind's wait and skips, and #2114 (split from it) caps the waits per frame and then goes on with the stand-in, which skips dispatches where this skips none; #889 sends compute pipelines to the workers when they are made, and one it has not reached by its first use is still waited for in the bind. #2130 bounds the big-compile gate's commit wait and does not touch this. None moves the wait to the submit. This conflicts with #2001 and #2114 inpso_async.rs; #2096 editspso_async.rsandreal.rstoo. Whichever merges first, I rebase.Tested
x86_64-pc-windows-gnu; vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and dxil-spirv#372.cargo build --workspacethencargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4:main2898511d1e3e9b(this change rebased on it)main2898511was merged into the branch by a maintainer (502ced5), and the third commit is on top of it (6044729). The numbers here are fromd1e3e9b, the same change rebased on2898511by me, which has the same source as6044729but for the order of two items inpso_async.rs; both resolutions take the same lines: the needed pipelines are taken by a worker before each job of the queue that carriesWorkclosures (build_queued, withmain'sdrop_unstarted_jobfor a released pipeline),ExecuteIndirectkeepsmain'sraw_pso,SetPipelineStatekeepsdred::mark_pipeline, both sides' tests are kept, and this change'salloc_pool::in_flightisallocator_in_flightbeside #1452's function of that name. The title runs below were made before the rebase, on the commits they name. On the previous headb7d0ef2(the same two commits onmain426a5a7) there is one, 1,050 s from an empty NVIDIA cache folder: a local merge ofmain426a5a7with #684, this and #1798; the kit and switches of the limit runs below. 2,048 or more dispatches were put off after the first#101; in six dumps from 120 to 1,040 s the only title thread in XCL's D3D12 layer was the submitting one, inrecord_deferred; 122 compute builds of 3 s or more finished on the workers, at most 3 at once; 0 dispatches skipped, 0queue.Waittimeouts. The submit had not gone through when the run ended.The same fail on both:
gpu::dxil::round_tests::directed_reference_basics,gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu,gpu_depth_buffer_created_for_unordered_access_is_placed,gpu_promoted_uav_clear_values_pass_create_committed_resource(lib);test_title_runs_and_game_folder_is_untouched,disk_free_space_ex_reports_pls_quota,set_predication_buffer_state_and_kickoff. The fifth onmainishle::acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure, which passed on this head. The two skipped ared32s8_targets_take_their_own_size_of_video_memoryandreservable_agrees_with_the_driver, which hang under Wine (#1706).tests/d3d12_resource_and_sync.rs(3 tests) ended in a page fault under Wine in some earlier runs: run alone 14 times, 5 times onmaincbc296aand 5 times on an earlier form of this commit; not in the two suite runs above.The retail title from cold driver caches, 1 run each, the machine otherwise idle: 300 s, A at 44.8 s, the first-run screens completed once and no story progress,
XCL_DXC_THREADS=4, noXCL_PSO_WAIT_MS, XCL'sdxil/driverfolder emptied and a new__GL_SHADER_DISK_CACHE_PATH; the DXIL cache kept. The tree is a local merge ofmain4178e88with #684, #751, #850, #906, #688, #1273, #1316, #1448 and #1321, with this commit cherry-picked onto it for the second row (two conflicts: the watchdog's constant, and #1273's counters in the worker loop) and an earlier form of this commit with the lane of #2141 for the third. The vkd3d-proton of these runs has three more dxil-spirv patches (the dominator numbering 0naku posted on #1269, and two of ours), without which one 2.8 MB program does not finish there. Onmainalone the title waits at its world start for a 29 MB program (#505); this change was not run there. "First#101" is the title's firstID3D12GraphicsCommandList10::#101call.#101queue.Waittimeouts#101came at 96.2, 105.3 and 99.5 s; over all runs of the evening it ranges from 74 to 113 s, so I read nothing into it. Without the change the presents stop within 2 s of it; with this alone they went on for 24 s (12 to 60 per 2 s) and then stopped; with the lane they stopped within 1 s. One run each: I do not know which of these would repeat. In every run the presents then stay stopped while builds go on, and with the change the dumps have a title thread in a graphics pipeline's build (underexecute_indirector a draw; #1798 is not in this tree). So this is not a title past its world start.fb1a905:cargo test --workspace -- pso_async:: list_x:: title_list:: bind:: alloc_pool:: --test-threads=4in debug, 48 passed, 0 failed.scripts/smoke.ps1on it: 1577 frames againstmaincbc296a's 1568,60 60 60on both, 0 removals, 0 crashes, peak commit 14404 MB against 14458 MB.33424af(an earlier form: this commit with the lane, before the two uncounted drops were counted): the same 48;scripts/smoke.ps11539 frames againstmaincbc296a's 1568,60 60 60on both, 0 removals, 0 crashes, peak commit 14485 MB against 14458 MB; a debug build of the title for 100 s presented to its end (2117 frames). NVIDIA GeForce RTX 5070 Ti 16 GB (driver 621.24), Ryzen 7 9800X3D, Windows 11 Pro 26300, rustc 1.99.1: on66896c9(before the watchdog clock, the workers' order and the window) the whole suite in debug, 1151 passed, 4 failed, 46 ignored, the four beinggpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0to_3, which failed there onmain689f2dbthe same day; and onc2096cf(before the workers' order) a debug build of the title stopped presenting on its first screen and ended at 64.7 s, 1 run, which the workers' order is meant to answer.maincbc296awith #684 and 10 of33424afwith #684, alternating, half of each with thread dumps at 45, 60 and 80 s.main: 10 of 10 presented through 100 s. With the change: 9 of 10; the tenth ended at 46 s in the thread dump itself (0xc0000005 in ntdll.dll+0x1ff2a36 ms after the 45 s dump was due, the case of #106 and #253). The failed start did not come again. A 100 s run there ends before the world start.b7d0ef2). A local merge ofmain568e7dbwith #2076, #684, #2141 and this pull request's first commit, the limit changed in place for the second run; Linux as above, but vkd3d-proton's dxil-spirv ise084e35cwith four local patches;XCL_DIRECT_DXIL=1,XCL_PSO_DISK_CACHE=0,XCL_DXC_THREADS=4,XCL_SKIP_BINK=1, A pressed when the title takes it; 1 run each.segment limit1.4 s after the first#101, and in the dumps at 120, 200 and 280 s both recording threads were inexecute_indirect→resolve_wait, as onmain. Two lists of the first world frame put off 207 and 209 dispatches (counted in a run with the limit out of the way).#101, nosegment limitline, no list reached 512 segments. The submitting thread waited inrecord_deferredfrom 64 s to 376 s while the workers built; then all 1,392 were recorded (0 skipped) and the title presented 2 frames.GPU queue.Wait … did not complete within 5000 ms … released on CPU(q1 against q0, q2, q3 and q4 at one value) and the title's watchdog at 406 s. An earlier run with no call put off logged the same releases on the same queues (40, from 8 s after its first#101), so I read it as #505's cycle and not as this change's; this run does not show the title past it.d1e3e9b(as above) on native Windows (the 8 GB card above):cargo test --workspace -- pso_async:: list_x:: title_list:: bind:: alloc_pool:: dispatch_chain --test-threads=4in debug, 77 passed, 0 failed;scripts/smoke.ps1: 726 frames, exit 0x0, 0 device removals, 0 crashes, peak commit 14685 MB, against 764 frames and 14710 MB onmain2898511(both lower than the runs on06c9f55, 1574 and 1577).Regression run
Under Wine on Linux (RTX 4060 Ti;
scripts/smoke.ps1unchanged, run by PowerShell 7 withxcl.exestarted through Wine: "peak commit" reads 0 MB there,exit: 0x89is the wrapper ending Wine after XCL's ownprocess ends, andRTX 4060 Ti 8GBis the name vkd3d-proton gives this 16 GB card).main:
PR (the head,
6044729):On
d1e3e9b(see Tested), the same run gave 1526 frames, exit0x89.Not tested
mainitself, or with #2001, #889 or #1798 merged in; AMD and Intel; the default number of compile threads.XCL_PSO_WAIT_MSset (that the bound holds at the submit is from the code).KickoffXwith a put-off call; a title list released while its put-off calls are still on the GPU; a deferred call recorded with a built pipeline in a test (the test's build returns none).AI use
@DavidM1911 on GitHub · 2026-11-25 06:17 UTC · original
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!
@SzczepanGrela on GitHub · 2026-11-25 11:03 UTC · original
Linux/RADV + Wine GPU test report on PR
#2118headfb1a905(fb1a9050f383349a5cdd94ba0b18efa841f6581b, local mergedbe4f76ad68df43f061f1afd67a37c634bd3f8ebontoorigin/main568e7db7729c8fa6c8f0f4b32d798faaf11462bb; note thatmainlater moved toc55ba167295333c81b7024a307e654ec818c475fand PR#2118currently showsCONFLICTINGagainst livemain).Setup
7.3.0-5-cachyos)AMD Radeon RX 9070 (RADV GFX1201, native wave64)(device0x7550, Vulkan1.4.354, Mesa RADV26.2.5-arch3.1)GE-Proton11-12(wine-11.0 (Staging)),vkd3d-proton v3.1, DXVKdxgi.dll, DXC1.9.2602.17(21d28f72)rustc 1.97.1,cargo test --target x86_64-pc-windows-gnu --release --workspace --no-run(44.17s, exit0, zero compiler warnings),XCL_REQUIRE_GPU=wave64 XCL_NETWORK=0Results
Unit tests (
cargo test --target x86_64-pc-windows-gnu --release -p xcl --lib ...):hle::d3d12x::pso_async -- --nocapture: 7 passed, 0 failed, 0 ignored (0.60s, exit0; including newhle::d3d12x::pso_async::used_tests::a_pipeline_a_submit_needs_is_built_before_the_queue), vs baseline568e7db6 passed, 0 failed, 0 ignored (0.60s, exit0). Also 7 passed, 0 failed, 0 ignored (0.60s, exit0) under concurrent Vulkan GPU load (vk_tool burn burner.spv gfx 2048 4096 256 30).hle::d3d12x::list_x::tests::a_gpu_wait_does_not_expire_while_the_title_is_held_for_a_build -- --exact --nocapture: 1 passed, 0 failed, 0 ignored (0.00s, exit0; new in#2118).hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit -- --exact --nocapture: 0 passed, 1 failed, 0 ignored in 2 of 2 runs (1.58s and 1.57s, exit101; new in#2118). Both runs printedxcl: D3D12.X: Dispatch with a pipeline that has no translated console shader (0x7e57d001) skippedand panicked atcrates/xcl/src/hle/d3d12x/list_x.rs:6351:13:the dispatch waited for the build (1.4999495s)on run 1 andthe dispatch waited for the build (1.4999477s)on run 2.hle::d3d12x::list_x -- --nocapture: abnormal exit (exit status: 5) after 25 passed tests (includinga_gpu_wait_does_not_expire_while_the_title_is_held_for_a_buildandcross_queue_cycle_and_same_queue_fifo_do_not_deadlock), matching baseline568e7dbabnormal exit (exit status: 5after 22 passed tests).hle::d3d12x -- --test-threads=4: 158 passed, 22 failed, 2 ignored (2.13s, exit101), vs baseline568e7db156 passed, 21 failed, 2 ignored (1.63s, exit101): +2 passed (a_pipeline_a_submit_needs_is_built_before_the_queue,a_gpu_wait_does_not_expire_while_the_title_is_held_for_a_build), +1 failed (a_dispatch_with_a_pipeline_still_building_waits_at_the_submit), and the same 21 pre-existing baseline failures.hle::d3d12xsub-suites matching baseline568e7db:title_list1 passed, 0 failed, 0 ignored (0.06s),bind4 passed, 2 failed, 0 ignored (0.16s, exit101),alloc_pool2 passed, 1 failed, 0 ignored (0.14s, exit101),real -- --test-threads=145 passed, 1 failed, 0 ignored (1.32s, exit101).Integration binaries (
cargo test --target x86_64-pc-windows-gnu --release --test <name>):gpu_pso_e2e: 7 passed, 0 failed, 0 ignored (0.27s, exit0, both default and undervk_toolVulkan GPU load), matching baseline568e7db7 passed, 0 failed, 0 ignored (0.26s, exit0).console_dlls_e2e: 13 passed, 0 failed, 0 ignored (0.00s, exit0), matching baseline568e7db13 passed, 0 failed, 0 ignored (0.00s, exit0).gpu_compute_e2e: 2 passed, 2 failed, 0 ignored (1.50s, exit101), matching baseline568e7db2 passed, 2 failed, 0 ignored (1.03s, exit101, same 2 pre-existing failures).d3d12_resource_and_sync(default and-- --test-threads=1): 2 passed, 1 failed, 0 ignored (0.66s and 0.55s, exit101), matching baseline568e7db2 passed, 1 failed, 0 ignored (0.25s and 0.26s, exit101, sameHRESULT(0x80070057)failure).Not tested
scripts/smoke.ps1(no retail title files locally).XCL_HEAP_WINDOWS=1(left unset) and--lib/--testtargets outside those listed above.AI use
@Royalflamejlh on GitHub · 2026-11-25 12:37 UTC · original
@SzczepanGrela thank you. The same test fails here on NVIDIA with a vkd3d-proton built without the relaxed-vtable change from #175 and passes with it, so I read your failure as the vkd3d-proton build, not RADV.
Setup:
b7d0ef2(this pull request rebased onmain426a5a7), release,x86_64-pc-windows-gnu; Linux, RTX 4060 Ti 16 GB (driver 615.71.09), Wine 11.21 Staging. The lib test program was run beside two builds of vkd3d-protonv3.1-90-g30b0eb9b: one with the two-hunk change from #175 (built with dxil-spirve084e35cand four patches), and one without that change (its own dxil-spirv34f0ff8with a local patch); neither test translates a shader. One run per cell.a_dispatch_with_a_pipeline_still_building_waits_at_the_submit(this pull request)dispatch 1 waited for the build (10.0002102s)mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares(a testmainhas too; run from this tree)0x2B28)Read
list_x.rs,deferred_segment). Stock vkd3d-proton returns NULL for such an allocator (d3d12_command_allocator_from_iface,libs/vkd3d/command.c, also atv3.1), soCreateCommandListreturnsE_INVALIDARG,deferreturns false, and the dispatch waits for its build where it is, as onmain. That is read from the source; the run logged noput off to the submitline.fb1a905it slept 1.5 s. Your 1.4999 s is that whole build. Like yours, my failing run printed the(0x7e57d001) skippedline before the panic.I have not changed the pull request for this: in your baseline run 21 of
main's ownhle::d3d12xtests fail as well. #867 (open) is for running on such a build; this test was not run with it.Not tested: RADV or any AMD card;
fb1a905; vkd3d-proton at thev3.1tag (mine is 90 commits later); GE-Proton;mainwith the build without the change.AI use: Claude Code: a session on Claude Fable 5.2 made the runs and the first draft; one on Claude Opus 5.5 checked them against the source and wrote this text.
Posted without review by a person: the account owner was away and reads replies later.
@pvfreis on GitHub · 2026-11-25 17:40 UTC · original
One point on
b1e8457merged ontomain68a284a(clean), by reading only, not run. It needsXCL_DIRECT_DXIL=1and a put-offDispatchof a split program.main's total scratch bound (0829441, newer than your base) does not hold for put-off split dispatches.SHAREDgives the chains of one PC list one scratch. Each put-off call has a PC list of its own, so each makes a new buffer: up to 256 MiB while the total has room, then up to 2 MiB (one group if that is more). At 512 put-off calls on a list that is up to 1 GiB past the 384 MiB.RECORDINGSkeeps them underown_alloc's PC allocator, which onlyrecord_deferredresets. A list that stops putting calls off keeps its last ones until its release, which leaves less room for all others.Two small changes, skipping nothing: in
record_deferred, passSHARED's entry from the last put-off segment to this one, wherepass_arenais called; at the list'sReset, calldispatch_chain::allocator_resetforown_alloc's PC allocators onceallocator_in_flightis false.AI use: Claude Code (Claude Opus 5.5) found this; a second Claude Opus 5.5 re-derived it; Claude Fable 5.2 reviewed the text; checked by a person before posting.
@tiagonleal on GitHub · 2026-11-25 17:42 UTC · original
Test report for #2118 on RTX 5070 Ti (Windows 11): no change to the world-load stop here, the compiles now run on several threads
Tested
b1e84577dbd3dd4667729bf8e3211758957baa74, merged locally ontomain082944135cd2b96288470a595861fa608eee08dc(mergec43f9a8a550375afaa80ab93158c286d93f515ef; it merges cleanly there, but this is not currentmain). Release build. Baseline:082944135cd2b96288470a595861fa608eee08dcunmodified.XCL_DIRECT_DXIL=1 XCL_PSO_PRELOAD=0, A pressed at 15-100 s,XCL_PSO_WAIT_MSunset, memory guard on (commit > 70 GB, free RAM < 1 GB). Same executable name and compute cache for baseline and PR, so the driver cache is warm for both (the 2 PR runs came after 4 baseline runs, so they are slightly warmer; the copy of the PR binary was checked by hash).released on CPUlinesXCL_PSO_WAIT_MS=50on the baseline also stops at 66 s, so on this card the stop does not look like a thread blocked in a bind.Not tested
main, AMD, a complete compute cache, runs longer than 300 s, the unit tests of the PR.Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
@Royalflamejlh on GitHub · 2026-11-25 19:55 UTC · original
@pvfreis thank you, both points hold. They are in
6044729, on top of the merge ofmain2898511made on the branch today.dispatch_chain::list_follows, called wherepass_arenais), with the UAV barrierpso::record_dispatch_chainputs first. A segment without a split dispatch passes the entry on, so split, plain, split still share one.Reset, the PC allocator its put-off calls last recorded on is reset ifalloc_poolsays the GPU is done with them, which drops those recordings and their scratch; onealloc_poolput aside while it was busy keeps them until it is taken again, as before. Withoutalloc_pool(XCL_ALLOC_SWAP=0) nothing says the GPU is done, so it is left to the next submit as before.Tested (on
d1e3e9b, the same change rebased by me on2898511, the same source but for the order of two items inpso_async.rs):a_list_recorded_after_another_goes_on_in_its_scratchpasses, and fails (the list after it made a scratch of its own) withlist_followsmade a no-op, in debug on an RTX 2070 SUPER (Windows 11). The suite under Wine on an RTX 4060 Ti: 1282 lib tests passed against 1277 on2898511, and nothing fails that does not also fail there. Not tested: the reset atReset(no test or run reaches it), the whole suite on Windows, and a title run with a put-off split dispatch, so the memory saved is not measured.@tiagonleal thank you for the RTX 5070 Ti runs. On our Linux runs (RTX 4060 Ti; this pull request at its earlier head
b7d0ef2onmain426a5a7, with #684 and #1798; 1 run each) the first world frame came out only withXCL_HUGE_PSO_WANTED_CONCURRENCY=6on an NVIDIA cache that four earlier runs had filled. At the default of 2 it did not: not within 300 s in three runs as that cache filled, and not within 1,050 s from an empty one. As in your table, this change moves which thread waits for the builds, not how much is built. The extra commit fits the source: at the submit up to four builds go on without the commit headroom check (WANTED_AT_ONCE,list_x.rs); that is read, not measured here.AI use: Claude Code (Claude Opus 5.5) wrote the commit and this reply.
Posted without review by a person: the account owner was away and reads replies later.
@fromthemoonx on GitHub · 2026-11-25 20:54 UTC · original
On
main6d12f58(with this PR merged), the newa_dispatch_with_a_pipeline_still_building_waits_at_the_submitis flaky on native Windows when it runs in parallel withmid_list_write64_wait64_split_avoids_cycle_and_reuses_spares. It fails at the segment count:the list before each dispatch, the dispatch, the list after it, left9or11, right421. So only 4 or 5 of the 210 dispatches were put off.RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug; the lib test binary run directly:
--exact), 100 runshle::d3d12x::list_x::tests:: --test-threads=4, 200 runsrotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang)mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares,--test-threads=2, 60 runsrotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang,--test-threads=2, 60 runslist_xtests,--test-threads=2, 10 runs eachmid_list_write64…pair failed (1 of 10)So the two tests share some process-wide split state (spare segments or the deferred-split bookkeeping, I have not found which). In a whole-suite run (
--test-threads=4) it passed in the four runs I made today; the parallellist_xruns are where it shows.Not tested: the cause; AMD; a release build.
AI use: Claude Code (Claude Opus 5.5) ran the repeats and pairings, and wrote this comment.
@DavidM1911 on GitHub · 2026-11-26 07:28 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin