From bcbf6b77ddb3267c7afa0e6b02575cb660c9541a Mon Sep 17 00:00:00 2001 From: srcamarda Date: Mon, 23 Nov 2026 19:22:23 -0300 Subject: [PATCH] Scripts: smoke.ps1 names the adapter the run used, from XCL's log 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' - ( MiB VRAM)" log line, and falls back to the old query without it. Co-Authored-By: Claude Opus 5.5 --- scripts/smoke.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/smoke.ps1 b/scripts/smoke.ps1 index a4f668a01..860dc9eaf 100644 --- a/scripts/smoke.ps1 +++ b/scripts/smoke.ps1 @@ -44,7 +44,10 @@ $commits = [regex]::Matches($text, 'memory: (\d+) MB committed') | ForEach-Objec $peak = if ($commits) { ($commits | Measure-Object -Maximum).Maximum } else { 'n/a' } $removals = ([regex]::Matches($text, 'device removed')).Count $crashes = ([regex]::Matches($text, 'unhandled exception|process ends with status')).Count -$gpu = (Get-CimInstance Win32_VideoController | Where-Object { $_.Name -notmatch 'Basic' } | Select-Object -First 1).Name +# the adapter the run used, as XCL logs it ("D3D12.X: backend 'real' - ( MiB VRAM)"): the +# first display adapter can be another one (an iGPU, a virtual display); that one only without the line +$gpu = if ($text -match "D3D12\.X: backend 'real' \S+ (.+?) \(\d+ MiB VRAM\)") { $Matches[1] } + else { (Get-CimInstance Win32_VideoController | Where-Object { $_.Name -notmatch 'Basic' } | Select-Object -First 1).Name } $code = if ($timedOut) { 'killed (no exit)' } else { '0x{0:x}' -f $p.ExitCode } @"