diff --git a/messung/gpu/kern/windows/dauerprobe_start.ps1 b/messung/gpu/kern/windows/dauerprobe_start.ps1 new file mode 100644 index 00000000..3fab4c56 --- /dev/null +++ b/messung/gpu/kern/windows/dauerprobe_start.ps1 @@ -0,0 +1,18 @@ +# Startet die Dauerprobe (windows/dauerprobe.py) abgekoppelt aus dem Messordner: ohne Fenster, BelowNormal, Prozessname +# pokerbench-gpukern-dauerprobe.exe. Halt: Datei \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"