Skip to content

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

Closed
srcamarda wants to merge 1 commit into
ivall:mainfrom
srcamarda:scripts-smoke-gpu
Closed

srcamarda wants to merge 1 commit into
ivall:mainfrom
srcamarda:scripts-smoke-gpu

Conversation

@srcamarda

Copy link
Copy Markdown

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

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 <noreply@anthropic.com>
@srcamarda

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant