GPU-Kern tau: Zeitmessung bricht bei Laeuferstart ab; Starter fuer die RTX

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 23:02:39 +01:00
co-authored by Claude Opus 5.5
parent 498375fd3a
commit 33b95a4fbc
2 changed files with 18 additions and 0 deletions
@@ -35,6 +35,7 @@ def main():
ap.add_argument("--ziel", type=float, default=0.5)
ap.add_argument("--max-iter", type=int, default=3000)
ap.add_argument("--aus")
ap.add_argument("--laeufer-sperre")
a = ap.parse_args()
lagen = [json.loads(l) for l in open(a.export) if '"turn"' in l]
lagen = [z for z in lagen if z["strasse"] == "turn"]
@@ -44,6 +45,9 @@ def main():
t0_ = dtt.aus_turnbaum(tb0, 0.05, 250.0)
dtl.loese(np.array([z0["brett"]], np.int64), np.array([z0["reichweiten"]], np.float32), t0_, a.geraet, iterationen=2)
for z in lagen:
if a.laeufer_sperre and os.path.exists(a.laeufer_sperre):
print(json.dumps(dict(abbruch="Laeufer spielt")), flush=True)
return
topf, stapel = float(z["topf"]), float(min(z["stacks"]))
tb = tq.TurnBaum(topf, stapel, zl.WELT_T, zl.WELT_R)
t = dtt.aus_turnbaum(tb, 0.05, 250.0)
@@ -0,0 +1,14 @@
# Zeit je Turn-Teilspiel im tau-Modus auf der RTX (tau_messung/zeit_turn.py): eigener Prozess pokerbench-gpukern-tauzeit.exe, ohne Fenster,
# BelowNormal, Code aus D:\Projects\pf-gpu-kern-mess, endet bei laeufer.pid. Lagen: D:\Projects\pokerfreak-daten\gpu\tau\export.jsonl.
param([string]$Lam = "2 8")
$sperre = 'D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\betrieb\scratch\laeufer.pid'
if (Test-Path $sperre) { "Laeufer spielt: kein Start"; exit 1 }
$wurzel = 'D:\Projects\pf-gpu-kern-mess'
$d = 'D:\Projects\pokerfreak-daten\gpu\tau'
$exe = 'D:\Projects\venv-gpu\Scripts\pokerbench-gpukern-tauzeit.exe'
if (-not (Test-Path $exe)) { Copy-Item 'D:\Projects\venv-gpu\Scripts\python.exe' $exe }
$skript = Join-Path $wurzel 'messung\gpu\kern\tau_messung\zeit_turn.py'
$kommando = "cmd /c `"set GPU_KERN_CUDA_SCHED=block&& `"$exe`" -u `"$skript`" $d\export.jsonl --geraet cuda --lam $Lam --aus $d\tau_zeit_cuda.jsonl --laeufer-sperre `"$sperre`" >> $d\tau_zeit.log 2>&1`""
$st = 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 = $wurzel; ProcessStartupInformation = $st }
"Rueckgabe $($r.ReturnValue), cmd-PID $($r.ProcessId); Protokoll $d\tau_zeit.log"