GPU-Kern: dauerprobe_start.ps1 (abgekoppelter Start der Dauerprobe aus dem Messordner)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 09:14:13 +01:00
co-authored by Claude Opus 5.5
parent 40c69c92f4
commit 1b24e40e47
@@ -0,0 +1,18 @@
# Startet die Dauerprobe (windows/dauerprobe.py) abgekoppelt aus dem Messordner: ohne Fenster, BelowNormal, Prozessname
# pokerbench-gpukern-dauerprobe.exe. Halt: Datei <Messordner>\messung\gpu\kern\windows\DAUERPROBE-HALT anlegen (beendet auch den Messdienst).
# powershell -NoProfile -ExecutionPolicy Bypass -File dauerprobe_start.ps1 [-Minuten 60]
param([double]$Minuten = 60)
$laeufer = 'D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\betrieb\scratch\laeufer.pid'
if (Test-Path $laeufer) { "Laeufer spielt: keine Dauerprobe"; exit 1 }
if (Get-Process -Name 'pokerbench-gpukern-dauerprobe' -ErrorAction SilentlyContinue) { "laeuft schon"; exit 1 }
$w = 'D:\Projects\pf-gpu-kern-mess\messung\gpu\kern\windows'
$halt = Join-Path $w 'DAUERPROBE-HALT'
if (Test-Path $halt) { Remove-Item $halt }
$exe = 'D:\Projects\venv-gpu\Scripts\pokerbench-gpukern-dauerprobe.exe'
if (-not (Test-Path $exe)) { Copy-Item 'D:\Projects\venv-gpu\Scripts\python.exe' $exe }
$skript = Join-Path $w 'dauerprobe.py'
$aus = Join-Path $w 'dauerprobe.out'
$kommando = "cmd /c `"`"$exe`" -u `"$skript`" --minuten $Minuten >> `"$aus`" 2>&1`""
$start = New-CimInstance -ClassName Win32_ProcessStartup -ClientOnly -Property @{ ShowWindow = [uint16]0; PriorityClass = [uint32]16384 }
$r = Invoke-CimMethod -ClassName Win32_Process -MethodName Create -Arguments @{ CommandLine = $kommando; CurrentDirectory = $w; ProcessStartupInformation = $start }
"Rueckgabe $($r.ReturnValue), cmd-PID $($r.ProcessId); Ergebnisse $w\dauerprobe.jsonl; Halt: $halt"