Repository navigation
Conversation
Build a clean locked release and run one workload against fresh ephemeral XCL caches, then the exact same workload against those caches warm. Preserve only logs, reports, and a versioned environment manifest while explicitly leaving the driver cache uncontrolled. Assisted-by: Codex (GPT-5.6-sol) (cherry picked from commit 5bdaa54) Ported without XCL_STALL_TRACE, which comes from the stall module on xcl-dev#2778 and is not on main.
Identify a workload from a deterministic metadata inventory instead of only its folder name, verify the inventory around each paired run, and require matching identity algorithms in comparisons. Persist no paths or file names and document that the fingerprint is not a content hash. Assisted-by: Codex (GPT-5.6-sol) (cherry picked from commit dfcd4bb) Only the perf-run.ps1 part is taken here: the matching checks in perf-compare.ps1 belong to the comparator, which is not part of this change.
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>
Validate that baseline and candidate runs describe the same workload, environment, system, GPU, driver, and schedule. Report raw cold/warm duration deltas without inventing percentages or statistical significance. Assisted-by: Codex (GPT-5.6-sol) (cherry picked from commit fd237b1) (cherry picked from commit dfcd4bb) Ported to main: the stall aggregate comparison is left out, because report.json on main has no stall summary (that comes from the stall module on xcl-dev#2778). The workload identity algorithm/version checks are the perf-compare part of dfcd4bb. Runs must also agree on startup_timeout_seconds, which perf-run records on main. The fixture's check for derived metrics matched the "ratio" inside "duration_ms" and now matches whole words only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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.
Stacked on #2887; only the top commit (
Scripts: compare reproducible performance artifacts) belongs here.Adds
scripts/perf-compare.ps1, which compares twoperf-run.ps1output folders (#2887) 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):
fd237b1bfrom #2778 by @bmjask, with the comparator part ofdfcd4bbb, ported as one commit with the authorship kept.What is in it
Scripts: compare reproducible performance artifacts(bmjask,fd237b1b+ theperf-comparepart ofdfcd4bbb):scripts/perf-compare.ps1,scripts/perf-compare.tests.ps1, README. Changed from the source:report.jsonthat comes from the stall module on Bmjask/ultra performance redesign #2778, andmainhas none.startup_timeout_seconds, whichperf-runrecords in Scripts: reproducible XCL-cold and XCL-warm performance runs #2887.ratioinsideduration_ms, so it failed on every run. It now matches whole words only.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 on5fefeb15(synthetic manifests).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 -- --test-threads=4on5fefeb15: 1446 passed, 0 failed, 47 ignored. 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