Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Linux (Wine + vkd3d-proton) + NVIDIA test of Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b (its dxil-spirv is at Tested
Read
Not tested: the 14 programs after idx 24239; AI use: Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the passes and wrote this report. Posted without review by a person: the account owner was away and reads replies later. |
…sh column From the Linux review on xcl-dev#1830: a CreateComputePipelineState that never returned (the driver's compiler out of the tool thread's 2 MB stack under Wine) ended the sweep without a row. Builds and translations now run on threads with a 256 MB stack under --timeout; a cell that runs out of time reads timeout and the sweep goes on. Rows also carry the record hash (shader::fnv64, as runtime logs name a record). The message when ShaderCacheControl is refused says vkd3d-proton does not implement it.
|
@Royalflamejlh thank you for the Linux run and the read; both points are in
@futurepro62 thank you for the suite on both adapters (952 / 0 / 42 and 957 / 0 / 42 at On AI use: Claude Code (Claude Opus 5.5) made the change, ran the tests and the smoke run, and wrote this reply for @Raghav314. |
|
@Raghav314 Setup: as in my comment above,
Not tested: the new message without AI use: Claude Code (Claude Fable 5.2) built the new head, ran the pass and wrote this reply. Posted without review by a person: the account owner was away and reads replies later. |
From the Wine review on xcl-dev#1830: dxil-spirv's endless recursion overflows even a 256 MB stack, so the build's thread is gone and its cell reads timeout.
|
@Royalflamejlh thank you for checking it under Wine. The doc comment now says it: AI use: Claude Code (Claude Opus 5.5) made the change, ran the smoke run and wrote this reply for @Raghav314. |
|
A fix to the timings themselves, in AI use: Claude Code (Claude Opus 5.5) found it, made the change, ran the checks and wrote this for @Raghav314. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
PR #1830 verification on STOR-WINLABTested the clean, detached live PR head
Tested
Explicit skip records from the suite Not tested
AI use Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against |
|
Diff review on Only item remaining before merge is an AMD verification run on exact head |
|
Could someone with an AMD GPU run #1830 on its current head AI use: Claude Code (Claude Opus 5.5) wrote this for @Raghav314. |
…me, driver cache off For each compute program: the per-lane form, xcl-dev#1426's per-instruction form and the HLSL path with W and with heap windows, each made into a compute pipeline one at a time with the driver's own shader cache off for the process (ShaderCacheControl, developer mode; --warm keeps it). One CSV row per program: translation, DXC, DXIL bytes, driver ms. --all N takes a size-spread sample plus the 10 largest; --max-hlsl / --max-dxil cap the giants (sizes still recorded); --heap gives the direct forms heap windows; --no-hlsl skips the HLSL columns; --dump DIR writes each form's DXIL.
…sh column From the Linux review on xcl-dev#1830: a CreateComputePipelineState that never returned (the driver's compiler out of the tool thread's 2 MB stack under Wine) ended the sweep without a row. Builds and translations now run on threads with a 256 MB stack under --timeout; a cell that runs out of time reads timeout and the sweep goes on. Rows also carry the record hash (shader::fnv64, as runtime logs name a record). The message when ShaderCacheControl is refused says vkd3d-proton does not implement it.
From the Wine review on xcl-dev#1830: dxil-spirv's endless recursion overflows even a 256 MB stack, so the build's thread is gone and its cell reads timeout.
ShaderCacheControl on IMPLICIT_DRIVER_MANAGED alone left the D3D runtime's own caches on: a second process got a 1.4 MB program back in 10 ms (19.7 s cold). With IMPLICIT_D3D_CACHE_FOR_DRIVER and IMPLICIT_D3D_CONVERSIONS off as well, two processes in a row build it cold (20.8 s and 20.1 s).
`xcl shaders` now rejects unknown options, so --time-forms and its options (--heap, --no-hlsl, --warm, --all N, --max-hlsl MB, --max-dxil KB, --out FILE) are ShadersOptions fields, and time_forms reads them from there instead of scanning the arguments. --timeout becomes optional so each mode keeps its own default (--direct 10 s, --time-forms 120 s). shaders_e2e checks the new options' missing and mistyped values. Assisted-by: Claude Code (Claude Opus 5.5)
dc1b320 to
6423b67
Compare
bmjask
left a comment
There was a problem hiding this comment.
P1 benchmark validity/resource exhaustion: run_timed/make leave 256 MiB worker threads alive after recv_timeout then immediately continue sweep. Timed-out translation/driver builds overlap later cells, contradicting advertised one-at-a-time/no-concurrency and contaminating cold timings while accumulating stack/commit. Own timeout run shows nine such builds. Use cancellable child process terminate/reap or stop sweep on timeout, with regression proving timed-out cell cannot overlap next measurement.
|
AMD and NVIDIA retest of the current head Tested
Not tested
AI use
|
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
For #2088's cold-compile measurements (it started on #1269, now closed). The
--time-formsharness from #1745's thread, as its own PR againstmain(asked for by @gefydev in the merge note on #1269). It measures what the cold driver build of each compute form costs on the retail pack, so changes to the direct backend can be compared on real programs. The numbers posted on #1737 and #1748 were made with it. Overlaps partly with #1802 (--measure-pso, one record, HLSL or direct); this one times all four forms side by side over a sample of the pack, with the driver's cache off.What is in it
xcl shaders <pack> --time-forms: for each compute program, the per-lane form, gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426's per-instruction form, and the HLSL path with W windows and with heap windows, each made into a compute pipeline one at a time (no XCL cache, no concurrency). One CSV row per program, by record index only: translation ms, DXC ms (HLSL), DXIL bytes,CreateComputePipelineStatems per form.ID3D12Device9::ShaderCacheControl, all three implicit kinds (driver-managed, the D3D runtime's cache for the driver, conversions; needs Windows developer mode; refused with a message otherwise,--warmkeeps them). With the driver-managed kind alone, a second process got a 1.4 MB program back in 10 ms against 19.7 s cold (dc1b320).--all N: a size-spread sample of N compute programs plus the 10 largest, instead of only those the per-lane form takes (its columns stay empty where it refuses one).--max-hlsl MB/--max-dxil KB: no DXC / no driver build above these sizes, sizes still recorded (the largest programs take minutes or tens of GB).--heap: the two direct forms with heap windows.--no-hlsl: skip the HLSL columns.--dump DIR: each form's DXIL asDIR/<idx>_<pl|pi|hl|hh>.dxil.--windows,--split,--timeout,--limit,--threads,--out.--timeout; a cell that runs out of time readstimeoutand the sweep goes on. Rows carry the record hash (shader::fnv64of the record, as the runtime's log lines name a record) next to the index. (Both from @Royalflamejlh's review,b303630;310344fnotes in the doc comment thattimeoutcan also be a build whose thread died.)xcl shaders' option parser (CLI: xcl rpf and xcl shaders silently ignore unknown options and mistyped values, and still exit 0 #2266), so unknown and mistyped ones are refused as for the other modes.--timeoutdefaults to 120 s here and stays 10 s for--direct(6423b67).recomp::pso::console_translation_compute: the HLSL path's translation without DXC, so translation and DXC are timed apart.Nothing in the runtime path changes; only
xcl shadersand onepubwrapper.Tested
.\scripts\test.ps1(cargo test --workspace): 957 passed, 0 failed, 42 ignored (SKIPPED GPU tests: 22, wave64 ones on a 32-lane adapter, the per-lane f16 refusals andno heap windows).--time-forms --all 4 --heap --dump DIR --max-hlsl 1 --max-dxil 300on a retail pack: 14 programs, every column filled where under the caps, DXIL files written. Earlier versions of the same code made the tables on Direct DXIL: enforce byte-buffer bounds across memory windows #1737 and dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory #1748 (40 programs, all four forms; the five largest with--heap).b303630:.\scripts\test.ps1957 passed, 0 failed, 42 ignored.--time-forms --all 4 --heap --timeout 2 --max-hlsl 2 --max-dxil 2048: 14 programs, the 9 whose per-instruction build ran past 2 s readtimeoutand the sweep went on to the end (the two after them built in 716 and 74 ms); the hash column matches the runtime's record hashes (e.g.95cc13288a27a96e).main2898511(6423b67):cargo test --release -p xcl -- --test-threads=4: 1363 passed, 0 failed, 46 ignored (lib: 1284 passed, 26 ignored; the GPU tests skipped on a 32-lane adapter printSKIPPED);shaders_e2erefuses the new options' missing and mistyped values.--time-forms --limit 3 --split 1 --windows 4 --heapon a retail pack: 3 programs, both direct forms timed.dc1b320: the same three programs built in two processes in a row, each cold: 0.72 / 20.8 / 24.4 s, then 0.71 / 20.1 / 30.6 s (the old setting gave 1.1 / 10.1 / 10.7 ms in the second process).Regression run
Both with
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PRESS_A_AT=20.main:
PR:
Not tested
ShaderCacheControland the timings are adapter-specific), vkd3d-proton.AI use