Skip to content

Instantly share code, notes, and snippets.

View mooskagh's full-sized avatar

Alexander Lyashuk mooskagh

View GitHub Profile
This file has been truncated, but you can view the full file.
06:18:38.199 << uci
06:18:38.206 >> id name The Lc0 chess engine. v0.15.1
06:18:38.206 >> id author The LCZero Authors.
06:18:38.206 >> option name Network weights file path type string default <autodiscover>
06:18:38.207 >> option name Number of worker threads type spin default 2 min 1 max 128
06:18:38.207 >> option name NNCache size type spin default 200000 min 0 max 999999999
06:18:38.207 >> option name NN backend to use type combo default cudnn var cudnn var cudnn-fp16 var opencl var blas var check var random var multiplexing
06:18:38.207 >> option name NN backend parameters type string default
06:18:38.207 >> option name Scale thinking time type string default 1.950000
06:18:38.207 >> option name Move time overhead in milliseconds type spin default 100 min 0 max 10000
#!/bin/env python3
##############################################################################
# Running:
# ./ucihost.py tcec.log ./lc0-tcec -t 1 --verbose-move-stats
##############################################################################
import sys
import subprocess
#!/bin/env python3
##############################################################################
# Running:
# ./ucimove.py tcec-2.log ./lc0-tcec -t 1 --verbose-move-stats
##############################################################################
import sys
import subprocess
import struct
from dataclasses import dataclass, field
def _CheckMagic(f, data, write):
if write:
f.write(b'P1R')
else:
assert b'P1R' == f.read(3)