diff --git a/relay/playbooks/ember-tune-pc1.ps1 b/relay/playbooks/ember-tune-pc1.ps1 index 892cd542..bb5c8eb9 100644 --- a/relay/playbooks/ember-tune-pc1.ps1 +++ b/relay/playbooks/ember-tune-pc1.ps1 @@ -49,7 +49,8 @@ if ($ember) { Say 'engine: the installed one (no jobs\ember-kit-1\igneum-app-ember.exe); an older engine ignores the tune and reports no_rows' } $helper = $null -foreach ($cand in @((Join-Path $appDir 'jobs\amd-kit-2\igneum-gpu-telemetry.exe'), (Join-Path $appDir 'jobs\amd-kit-1\kit\igneum-gpu-telemetry.exe'))) { if (Test-Path $cand) { $helper = $cand; break } } +$found = Get-ChildItem -Path (Join-Path $appDir 'jobs') -Recurse -Filter 'igneum-gpu-telemetry.exe' -ErrorAction SilentlyContinue | Where-Object { $_.FullName -match 'amd-kit' } | Sort-Object LastWriteTime -Descending | Select-Object -First 1 +if ($found) { $helper = $found.FullName } if ($helper) { Copy-Item -LiteralPath $helper -Destination (Join-Path $bin 'igneum-gpu-telemetry.exe') -Force Say ("helper: the Ember build of igneum-gpu-telemetry from " + $helper + " sha256=" + (Get-FileHash -LiteralPath $helper -Algorithm SHA256).Hash.ToLower())