Repository navigation
Conversation
…re messages) Upstream xcl-dev#2890 (c6c14a1, single-commit on upstream/main 8b957be): title_under_the_debug_layer prints the last TAIL=40 lines of xcl.log in its three assertion messages and tolerates a missing log file (unwrap_or_default), so a title that never finishes still shows why. Verbatim port of the whole fix (1 file, +24/-4): the TAIL const + tail() helper after the PathBuf import and the three rewritten asserts. Applies cleanly; the only context offset is the linux-only debug_layer_skip_line helper above the hunk. Windows-only siblings xcl-dev#2888 (perf-compare ps1 stack), xcl-dev#2889 (tiling_parity.rs host-driver test, no cfg(windows) gate), xcl-dev#2891 (title_textures.rs write-watch tiering on the 71b8e6e dev-stack) stay out per the step-139 sync entry.
|
Windows cross-check of I tried adding OpenAI Codex (6.2sol) assisted with verification. |
luckyteagirl
left a comment
There was a problem hiding this comment.
The environment guard uses PowerShell's case-insensitive -ne on serialized JSON, so it accepts comparisons across case-sensitive XCL settings. Two synthetic manifests that differed only in the recorded XCL_DIRECT_DXIL value (all versus ALL) passed the exact-head comparator and produced an xcl-perf-comparison document. XCL enables direct graphics translation for lowercase all, and the uppercase spelling leaves it disabled. Can the environment comparison use -cne and cover this pair in the existing fixture? Comparator · Runtime setting
AI use: OpenAI Codex (GPT-6.2 Sol) reviewed the exact source, ran the PowerShell fixture, and drafted this comment. No benchmark or GPU workload was run.
The manifest recorded a fixed list of 13 XCL_* variables, while the runtime reads about 180. Two runs that differed in an unlisted switch, such as XCL_PIPELINE_THREADS or XCL_PREPARE_ALL, produced identical environment records and perf-compare accepted the pair (reported on xcl-dev#2888 and xcl-dev#2887). Record every XCL_* variable the runs inherit, sorted by name, except the per-run XCL_DATA_ROOT / XCL_DXIL_CACHE paths the script sets itself and its XCL_PERF_RUN_* test hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5fefeb1 to
65e1a20
Compare
|
Tested PR #2888 ( VerificationRan
|
65e1a20 to
701a7b7
Compare
|
Thanks, both are fixed on the branch (head @ettehn, @luckyteagirl, Tested at AI use: Claude Code (Claude Opus 5.5) wrote both fixes, ran the tests and wrote this comment. |
|
@KOLESNiii We ran the The attached test-only commit |
…e threads The runner's own mock output, not hand-written manifests: three runs with XCL_PIPELINE_THREADS 1, 1 and 8. perf-compare accepts the matching pair, refuses the other with "runtime environment differs", and leaves the manifests unchanged. Test by UncommonDLL (OpenAI Codex assisted), from xcl-dev#2888's review.
|
@UncommonDLL thanks. I applied your commit to this PR with your authorship kept, as Here, on Windows PowerShell 5.1 (Windows 11 26300), AI use: Claude Code (Claude Opus 5.5) applied the commit, ran both fixtures and wrote this reply. |
Under Windows PowerShell, when the script's output is redirected (a queued or logged run), every stderr line of a native command becomes an error record, and with $ErrorActionPreference = 'Stop' cargo's first "Compiling" line ended the run before the title started. git and rustc are called the same way. Run them with 'Continue' and check their exit codes, as scripts/test.ps1 does. The fixture's mock cargo now writes to stderr and the first run is redirected, which failed before this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a fresh DXIL cache, `xcl run` prepares every shader of the title before the guest starts, and XCL_RUN_SECONDS counts only from there. On a retail title with 26503 shaders, about 1400 were ready after 181 s on an RTX 2070 SUPER, so the fixed 120 s allowance killed the cold run during preparation. A killed XCL prints no `Log:` line, so the script stopped with neither run recorded. Take -StartupTimeoutSeconds as smoke.ps1 does (same range and default) and record it in each run record. When XCL prints no log path, show its exit code, the timeout state and its output, as smoke.ps1 does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the title crashes before XCL writes report.json, `xcl run` prints "No report - see the log: <path>" instead of "Log: <path>". perf-run found no log path, stopped, and then deleted the ephemeral data root, so the only record of the crash went with it. This happened on a retail title: an access violation (0xc0000005) during the XCL-cold run's shader preparation, about 25 minutes in. Accept either line, so the crashed run's log is kept and its exit code recorded, as the manifest already allows. The fixture's mock XCL can now crash this way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The manifest recorded a fixed list of 13 XCL_* variables, while the runtime reads about 180. Two runs that differed in an unlisted switch, such as XCL_PIPELINE_THREADS or XCL_PREPARE_ALL, produced identical environment records and perf-compare accepted the pair (reported on xcl-dev#2888 and xcl-dev#2887). Record every XCL_* variable the runs inherit, sorted by name, except the per-run XCL_DATA_ROOT / XCL_DXIL_CACHE paths the script sets itself and its XCL_PERF_RUN_* test hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
perf-run quoted the game folder as "<path>". Windows argument parsing halves backslashes that come before a quote, so a folder given as 'D:\Some Game\' reached xcl as 'D:\Some Game"' and the run failed (reported on xcl-dev#2887). The trailing run of backslashes is now doubled. A .cmd mock does not parse its command line that way, so the fixture compiles a small C# shim (with the .NET Framework csc.exe in Windows) that records the arguments it receives and then runs the mock; the old script fails that check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a timeout perf-run killed only the launcher it started, stopped the clock, and then waited for the output pipes to close. A child of the launcher that inherited them (the launcher starts its host with handle inheritance) kept running, held the read open and could still write the run's log, which was then copied as if it belonged to the timed run (reported on xcl-dev#2887 with a child writing 5 s into a 2 s run). Each run's launcher is now assigned to a kill-on-close job object, which is terminated when the launcher exits or times out, before the clock stops. Reading the output is bounded to 30 s for a process that escaped the job by starting before the launcher was assigned to it. The fixture adds a mock child that writes the log 5 s after a 2 s timeout; the old script copied that write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
XCL_PREPARE_ALL (prepare every shader record rather than only the title's used-shader list) was the switch reported missing from the manifest on manifest holds every inherited XCL_* setting instead of a selected list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
perf-run records startup_timeout_seconds in each run (an XCL-cold run is given time to prepare its shaders before the guest timer starts), and two runs given different allowances are not the same measurement. Refuse such a pair, as the other recorded run properties are. The fixture's runs carry the field and a case checks the refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The environment check used PowerShell's case-insensitive -ne, so runs with XCL_DIRECT_DXIL=all and =ALL were accepted as comparable although only the lowercase value enables direct translation. Use -cne, and cover the pair in the fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e threads The runner's own mock output, not hand-written manifests: three runs with XCL_PIPELINE_THREADS 1, 1 and 8. perf-compare accepts the matching pair, refuses the other with "runtime environment differs", and leaves the manifests unchanged. Test by UncommonDLL (OpenAI Codex assisted), from xcl-dev#2888's review.
552a190 to
cb776d3
Compare
|
Stacked on #2887: its first seven commits are #2887's. Only the top three belong here: the AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Stacked on #2887; only the top three commits (
Scripts: perf-compare requires the runs to agree on the startup timeout,Scripts: perf-compare compares recorded XCL settings case-sensitivelyandScripts: perf-run's fixture checks perf-compare refuses other pipeline threads) belong here.Fixes for
scripts/perf-compare.ps1, which compares twoperf-run.ps1output folders without changing them. It refuses runs that are not comparable: a different workload fingerprint or identity algorithm/version, run order, requested duration or startup timeout,XCL_*environment, system, GPU or GPU driver. For comparable runs it reports the raw cold and warm durations, their deltas and the exit/timeout state, as console lines and one JSON document. It does not compute percentages or significance.Part of #2787 (item 8). The comparator itself (
fd237b1bfrom #2778 by @bmjask) is now onmain, so after the rebase ontomain336fdddathe port's commit is reduced to whatmainlacks: the startup-timeout check.What is in it
Scripts: perf-compare requires the runs to agree on the startup timeout(8a331081): runs must also agree onstartup_timeout_seconds, whichperf-runrecords (Scripts: reproducible XCL-cold and XCL-warm performance runs #2887).Scripts: perf-compare compares recorded XCL settings case-sensitively(64712f5e): the environment check used PowerShell's case-insensitive-ne, soXCL_DIRECT_DXIL=alland=ALLwere accepted as comparable although only the lowercase value turns direct translation on. It uses-cnenow, with the pair in the fixture.Scripts: perf-run's fixture checks perf-compare refuses other pipeline threads(UncommonDLL,cb776d3b, from their review):perf-run.tests.ps1makes three mock runs withXCL_PIPELINE_THREADS1, 1 and 8;perf-compareaccepts the matching pair, refuses the other withruntime environment differs, and leaves the manifests unchanged.XCL_PIPELINE_THREADS) are now compared too: Scripts: reproducible XCL-cold and XCL-warm performance runs #2887 records every inheritedXCL_*setting.compare-perf.ps1does on two logs, and it can be run on thexcl.logfiles aperf-runfolder keeps.Tested
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\perf-compare.tests.ps1: all assertions passed on701a7b79(synthetic manifests).perf-run.tests.ps1also passes there.main336fddda, oncb776d3b:perf-run.tests.ps1andperf-compare.tests.ps1: all assertions passed, Windows PowerShell 5.1 (UncommonDLL ran the new fixture on PowerShell 7.6.10 too).perf-run.ps1from Scripts: reproducible XCL-cold and XCL-warm performance runs #2887 wrote with its mock XCL, and refused a pair from different workloads.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4oncb776d3b(debug): 2122 passed, 9 failed, 48 ignored. The 9 failures are the ones in main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093 (3 e2e title tests, 6 split / wave64 GPU tests);main336fdddafails the same 9 tests with the same counts on this machine. This PR changes no Rust code. SKIPPED on this adapter: 21 ×no wave64, 3 f16/f32 per-lane forms refused per gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426, 1 ×no heap windows.Not tested
perf-runfolders from a retail game. No complete cold/warm pair exists yet (see Scripts: reproducible XCL-cold and XCL-warm performance runs #2887, which asks for one).AI use
🤖 Generated with Claude Code