Flop-Job: Blatt-Dienst-Befehl vollstaendig aus dienst.txt (gpu-kern nennt ihn), Rauschen fuer a/b angehaengt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
# Flop-Prueffaelle (flopsuche, Hauptsession 03.12.), laeuft im ruhigen Fenster aus farm-nacht13: Bau claude/flop-sperre 7825f460 als
|
||||
# pokerbench-flopsperre-rebel.exe, dann drei Laeufe nacheinander mit je EINEM Motor (nachspiel_flop.py), GPU-Turnblatt-Dienst als Kindprozess.
|
||||
# Python mit CUDA und Kern-Ordner aus <o>\dienst.txt (Zeile 1 Python, Zeile 2 Kern; abgestimmt mit gpu-kern). Faelle aus <o>\faelle.txt (nie ins Git).
|
||||
# Befehl des Blatt-Dienstes aus <o>\dienst.txt (von gpu-kern). Faelle aus <o>\faelle.txt (nie ins Git).
|
||||
param([string]$O = 'D:\Projects\pf-batterie\messung\farm\flop-i30')
|
||||
$ziel = 'D:\Projects\pokerfreak-daten\pruefstand\flop-sperre\i30'; New-Item -ItemType Directory -Force $ziel | Out-Null
|
||||
$log = "$O\job.log"; function Log($x) { Add-Content -Path $log -Value ((Get-Date -Format 'HH:mm:ss') + ' ' + $x) -Encoding UTF8 }
|
||||
$d = Get-Content "$O\dienst.txt" -EA 0; if (@($d).Count -lt 2) { Log 'ROT: dienst.txt fehlt (Python/Kern von gpu-kern)'; exit 1 }
|
||||
$pyc = $d[0].Trim(); $kern = $d[1].Trim()
|
||||
foreach ($p in @($pyc, "$kern\turn\blattwert.py", "$kern\turn\dturntafel.py")) { if (-not (Test-Path $p)) { Log "ROT: fehlt $p"; exit 1 } }
|
||||
if (("$pyc$kern").Contains(' ')) { Log 'ROT: Leerzeichen im Python- oder Kern-Pfad (der Motor trennt an Leerzeichen)'; exit 1 }
|
||||
# dienst.txt: EINE Zeile, der Grundbefehl des Blatt-Dienstes ohne Rauschen, wie gpu-kern ihn nennt (Python mit CUDA, Skript, --geraet cuda,
|
||||
# --plaetze 12, Boden 0,01); fuer a/b haengt der Job "--rauschen 0.01|0.005 --saat 7" an. Der Motor trennt an Leerzeichen: keine Pfade mit Leerzeichen.
|
||||
$dienst = "$(Get-Content "$O\dienst.txt" -EA 0 | Select-Object -First 1)".Trim()
|
||||
if (-not $dienst) { Log 'ROT: dienst.txt fehlt (Befehl des Blatt-Dienstes von gpu-kern)'; exit 1 }
|
||||
$teile = $dienst -split ' +'; if (-not (Test-Path $teile[0]) -or -not (Test-Path $teile[1])) { Log "ROT: Python oder Dienst-Skript fehlt: $dienst"; exit 1 }
|
||||
if ($dienst -notmatch '--geraet cuda') { Log "ROT: Dienst nicht auf cuda: $dienst"; exit 1 }
|
||||
Log "Blatt-Dienst: $dienst"
|
||||
$f = @{}; Get-Content "$O\faelle.txt" | ? { $_ -match '^(\w+)=(.+)$' } | % { $f[$Matches[1]] = $Matches[2].Trim() }
|
||||
$baum = 'D:\Projects\pf-flopsperre-7825f460'
|
||||
if (-not (Test-Path "$baum\Cargo.toml")) {
|
||||
@@ -24,7 +27,6 @@ if (-not (Test-Path $exe)) {
|
||||
Log ("Exe $exe SHA256 " + (Get-FileHash $exe).Hash)
|
||||
$daten = 'D:/Projects/pokerfreak-daten/grundstrategie-mitzaehler'; $schatten = 'D:\Projects\pokerfreak-daten\live-archiv\schatten-20261202-1530.jsonl'
|
||||
$fest = @('MOTOR_FLOP_SUCHE=1', 'MOTOR_FLOP_SUCHE_BODEN=0.05', 'MOTOR_FLOP_SUCHE_WECHSEL=6', 'MOTOR_FLOP_SUCHE_MS=100000000', 'RAYON_NUM_THREADS=8', 'MOTOR_FLOP_SUCHE_ABNAHME=0', 'MOTOR_FLOP_SUCHE_RUNDEN=300')
|
||||
$dienst = "$pyc $baum\messung\motor\flop_sperre\turnblatt_dienst.py --geraet cuda --ziel-prozent 1.0 --boden 0.01 --kern $kern"
|
||||
Set-Location "$baum\messung\motor\flop_sperre"
|
||||
foreach ($l in @(@('rebel5-rauschen0.01', 'FUENF', ' --rauschen 0.01 --saat 7'), @('rebel5-rauschen0.005', 'FUENF', ' --rauschen 0.005 --saat 7'), @('rebel14', 'VIERZEHN', ''))) {
|
||||
$aus = "$ziel\$($l[0]).jsonl"
|
||||
|
||||
Reference in New Issue
Block a user