Scripts: smoke.ps1 names the adapter XCL ran on, from report.json #278

Closed
grahamster2 wants to merge 1 commit from upstream-pr/281 into main
grahamster2 commented 2026-11-23 22:22:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grahamster2 on 2026-11-23T22:22:24Z.


smoke.ps1's gpu: line took the first Win32_VideoController that is not the basic display adapter. On a machine with an iGPU next to a discrete GPU that is often the iGPU, so the xcl-smoke block names hardware the run did not use: on an RTX 3080 + AMD RDNA2 iGPU machine it said AMD Radeon(TM) Graphics while XCL ran on the RTX 3080. The line now comes from d3d12.adapter in the run's report.json, with the Win32 query kept as the fallback.

What is in it

  • scripts/smoke.ps1: read d3d12.adapter from report.json next to the run's log (XCL moves the previous run's report to report.prev.json at start, so a stale one is not read) and drop its (N MiB VRAM) suffix; fall back to the old Win32_VideoController query when the report or the field is missing.

Tested

  • NVIDIA GeForce RTX 3080 10 GB (driver 610.88) + AMD RDNA2 iGPU, Windows 11 Pro 26200, Rust 1.94.0, release build for the smoke run, debug for the suite
  • cargo test --workspace -- --test-threads=4: 651 passed, 0 failed, 40 ignored
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64)
  • scripts/smoke.ps1 -Game <retail title> at 9ab7d76: before, gpu: AMD Radeon(TM) Graphics; with this change, gpu: NVIDIA GeForce RTX 3080 (XCL's log: backend 'real' – NVIDIA GeForce RTX 3080)
  • The fallback, run by hand with no report.json: the old Win32 name

Regression run

  • Not needed: the change is in scripts/ only, crates/xcl/src is untouched.

Not tested

  • A run killed by the script's timeout (no report written): only the fallback was checked by hand, not through a real timed-out run
  • AMD-only and NVIDIA-only machines (the Win32 and report names are expected to agree there)
  • PowerShell 7: run with Windows PowerShell 5.1 only

AI use

  • Claude Code with Claude Opus 5.5: wrote the change and ran the tests.
<!-- greyfinch-sync:ivall/xcl:issue:6570040518 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/281). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-23T22:22:24Z. --- `smoke.ps1`'s `gpu:` line took the first `Win32_VideoController` that is not the basic display adapter. On a machine with an iGPU next to a discrete GPU that is often the iGPU, so the `xcl-smoke` block names hardware the run did not use: on an RTX 3080 + AMD RDNA2 iGPU machine it said `AMD Radeon(TM) Graphics` while XCL ran on the RTX 3080. The line now comes from `d3d12.adapter` in the run's `report.json`, with the Win32 query kept as the fallback. **What is in it** - `scripts/smoke.ps1`: read `d3d12.adapter` from `report.json` next to the run's log (XCL moves the previous run's report to `report.prev.json` at start, so a stale one is not read) and drop its ` (N MiB VRAM)` suffix; fall back to the old `Win32_VideoController` query when the report or the field is missing. **Tested** - NVIDIA GeForce RTX 3080 10 GB (driver 610.88) + AMD RDNA2 iGPU, Windows 11 Pro 26200, Rust 1.94.0, release build for the smoke run, debug for the suite - `cargo test --workspace -- --test-threads=4`: 651 passed, 0 failed, 40 ignored - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64) - `scripts/smoke.ps1 -Game <retail title>` at 9ab7d76: before, `gpu: AMD Radeon(TM) Graphics`; with this change, `gpu: NVIDIA GeForce RTX 3080` (XCL's log: `backend 'real' – NVIDIA GeForce RTX 3080`) - The fallback, run by hand with no `report.json`: the old Win32 name **Regression run** - Not needed: the change is in `scripts/` only, `crates/xcl/src` is untouched. **Not tested** - A run killed by the script's timeout (no report written): only the fallback was checked by hand, not through a real timed-out run - AMD-only and NVIDIA-only machines (the Win32 and report names are expected to agree there) - PowerShell 7: run with Windows PowerShell 5.1 only **AI use** - Claude Code with Claude Opus 5.5: wrote the change and ran the tests.
upstream-sync closed this pull request 2026-11-24 06:57:58 +00:00
ivall commented 2026-11-24 07:04:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T00:03:59Z.


Merged into a6f5f7a by cherry-pick together with #318 - thanks! Checked on an RX 9070 (RDNA4) on main a6f5f7a, together with #335, #322, #331, #330, #338, #318 and #332: cargo test --workspace -- --test-threads=4 - 636 unit tests passed, 0 failed; the retail game reaches its menu and draws it (frame dump) and goes on past it.

<!-- greyfinch-sync:ivall/xcl:comment:7117664840 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/281#issuecomment-7117664840). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T00:03:59Z. --- Merged into a6f5f7a by cherry-pick together with #318 - thanks! Checked on an RX 9070 (RDNA4) on main a6f5f7a, together with #335, #322, #331, #330, #338, #318 and #332: `cargo test --workspace -- --test-threads=4` - 636 unit tests passed, 0 failed; the retail game reaches its menu and draws it (frame dump) and goes on past it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!278
No description provided.