Scripts: smoke.ps1 names the adapter the run used, from XCL's log #285

Closed
github-bot wants to merge 1 commit from gh-pr/285/head into gh-pr/285/base
Owner

@⁠srcamarda on GitHub · 2026-11-23 22:22 UTC · original
srcamarda:scripts-smoke-gpu → main · +4 −1 · 1 files · 1 commits · closed without merging

scripts/smoke.ps1 printed the first display adapter Windows lists as gpu:, not the one the run used. On a machine with an iGPU, or a virtual display driver as here, that is another adapter: my runs on an RX 7800 XT said gpu: SudoMaker Virtual Display Adapter (#187). The block now takes the name from XCL's own log line, D3D12.X: backend 'real' – <name> (<n> MiB VRAM). It falls back to the old query when the line is not there (e.g. the null backend).

What is in it

  • scripts/smoke.ps1: gpu: from the backend line of the run's log, the first display adapter only without it

Tested

  • RX 7800 XT (driver 32.0.32029.2010), Ryzen 5 5600G with its iGPU and a virtual display adapter installed, Windows 11 Pro 26300, Rust 1.100.0 MSVC
  • scripts/smoke.ps1 -Game <retail title> -Seconds 20 with an xcl.exe built from 9ab7d76, in Windows PowerShell 5.1 and PowerShell 7: both print gpu: AMD Radeon RX 7800 XT (before: gpu: SudoMaker Virtual Display Adapter)
  • The match and the fallback on a log text with and without the line, in both shells (the line's – is matched as \S+, since PowerShell 5.1 reads a script without a BOM as ANSI)
  • cargo test --workspace -- --test-threads=4 on this branch: 651 passed, 0 failed, 40 ignored, no SKIPPED

Regression run

  • not needed: no change to crates/xcl/src

Not tested

  • NVIDIA / Intel adapters, and a run on the null backend (the fallback is the old code, unchanged)

AI use

  • Claude Code with Claude Opus 5.5: found the problem, wrote the change and this description, ran the tests above. I reviewed the diff and the results.

🤖 Generated with Claude Code

**@⁠srcamarda** on GitHub · 2026-11-23 22:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/285) `srcamarda:scripts-smoke-gpu` → `main` · +4 −1 · 1 files · 1 commits · closed without merging `scripts/smoke.ps1` printed the first display adapter Windows lists as `gpu:`, not the one the run used. On a machine with an iGPU, or a virtual display driver as here, that is another adapter: my runs on an RX 7800 XT said `gpu: SudoMaker Virtual Display Adapter` (#187). The block now takes the name from XCL's own log line, `D3D12.X: backend 'real' – <name> (<n> MiB VRAM)`. It falls back to the old query when the line is not there (e.g. the null backend). **What is in it** - `scripts/smoke.ps1`: `gpu:` from the backend line of the run's log, the first display adapter only without it **Tested** - RX 7800 XT (driver 32.0.32029.2010), Ryzen 5 5600G with its iGPU and a virtual display adapter installed, Windows 11 Pro 26300, Rust 1.100.0 MSVC - `scripts/smoke.ps1 -Game <retail title> -Seconds 20` with an `xcl.exe` built from `9ab7d76`, in Windows PowerShell 5.1 and PowerShell 7: both print `gpu: AMD Radeon RX 7800 XT` (before: `gpu: SudoMaker Virtual Display Adapter`) - The match and the fallback on a log text with and without the line, in both shells (the line's `–` is matched as `\S+`, since PowerShell 5.1 reads a script without a BOM as ANSI) - `cargo test --workspace -- --test-threads=4` on this branch: 651 passed, 0 failed, 40 ignored, no `SKIPPED` **Regression run** - not needed: no change to `crates/xcl/src` **Not tested** - NVIDIA / Intel adapters, and a run on the null backend (the fallback is the old code, unchanged) **AI use** - Claude Code with Claude Opus 5.5: found the problem, wrote the change and this description, ran the tests above. I reviewed the diff and the results. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The `gpu:` line took the first display adapter Windows lists, which on a
machine with an iGPU or a virtual display driver is not the one XCL ran on
(an RX 7800 XT run printed "SudoMaker Virtual Display Adapter"). It now
takes the name from XCL's "D3D12.X: backend 'real' - <name> (<n> MiB VRAM)"
log line, and falls back to the old query without it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:18:41 +00:00
github-bot closed this pull request 2026-11-26 04:18:41 +00:00
Author
Owner

@⁠srcamarda on GitHub · 2026-11-24 00:09 UTC · original

Closing: the same fix went into main as 97dc49c (#281, opened half a minute before this one), reading the adapter from report.json. Nothing left here.

**@⁠srcamarda** on GitHub · 2026-11-24 00:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/285#issuecomment-7117757635) Closing: the same fix went into `main` as 97dc49c (#281, opened half a minute before this one), reading the adapter from `report.json`. Nothing left here.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.