-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
117 lines (90 loc) · 3.6 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
_default: list
list:
@just --list
################################### Basics ####################################
build:
@cargo build --release
generate-fathom-bindings:
bindgen src/engine/tablebases/fathom/src/tbprobe.h \
-o src/engine/tablebases/bindings.rs \
--no-layout-tests
run:
@cargo run --release
tune datafile:
@cargo run --release --features tuner -- tune {{datafile}}
release:
@cargo build --release --features release
@RUSTFLAGS='-C target-feature=+avx2' cargo build --release --features release --target x86_64-pc-windows-gnu
################################## Tests ######################################
test:
@cargo test --release
############################### Profiling #####################################
instruments +CMD:
cargo instruments -t "time" --release -- {{CMD}}
instruments-debug +CMD:
cargo instruments -t "time" -- {{CMD}}
################################# Misc #######################################
sprt-progression ll ld dd wd ww:
@just sprt 0.0 5.0 {{ll}} {{ld}} {{dd}} {{wd}} {{ww}}
sprt-regression ll ld dd wd ww:
@just sprt -5.0 0.0 {{ll}} {{ld}} {{dd}} {{wd}} {{ww}}
sprt elo0 elo1 ll ld dd wd ww:
@./etc/sprt.py --elo0 {{elo0}} --elo1 {{elo1}} --results {{ll}} {{ld}} {{dd}} {{wd}} {{ww}}
copy-bin name:
cargo build --release
cp target/release/engine bins/{{name}}
test-stc new baseline concurrency="2":
just playoff-sprt {{new}} {{baseline}} {{concurrency}} 8+0.08
test-ltc new baseline concurrency="2":
just playoff-sprt {{new}} {{baseline}} {{concurrency}} 40+0.4
test-stc-with-adjudication new baseline concurrency="2":
just playoff-sprt-with-adjudication {{new}} {{baseline}} {{concurrency}} 8+0.08
test-ltc-with-adjudication new baseline concurrency="2":
just playoff-sprt-with-adjudication {{new}} {{baseline}} {{concurrency}} 40+0.4
[private]
playoff-sprt new baseline concurrency tc:
fastchess \
-engine name="$(basename {{new}})" cmd="{{new}}" \
-engine name="$(basename {{baseline}})" cmd="{{baseline}}" \
-openings file=./etc/openings/UHO_Lichess_4852_v1.epd format=epd order=random \
-ratinginterval {{concurrency}} \
-concurrency {{concurrency}} \
-rounds 100000 -repeat \
-pgnout "./bins/$(basename {{new}})-vs-$(basename {{baseline}})-{{tc}}.pgn" \
-sprt elo0=0 elo1=5 alpha=0.05 beta=0.05 \
-each \
proto=uci \
tc={{tc}}
[private]
playoff-sprt-with-adjudication new baseline concurrency tc:
fastchess \
-engine name="$(basename {{new}})" cmd="{{new}}" \
-engine name="$(basename {{baseline}})" cmd="{{baseline}}" \
-openings file=./etc/openings/UHO_Lichess_4852_v1.epd format=epd order=random \
-ratinginterval {{concurrency}} \
-concurrency {{concurrency}} \
-rounds 100000 -repeat \
-draw movenumber=40 movecount=8 score=10 \
-resign movecount=3 score=400 twosided=true \
-pgnout "./bins/$(basename {{new}})-vs-$(basename {{baseline}})-{{tc}}.pgn" \
-sprt elo0=0 elo1=5 alpha=0.05 beta=0.05 \
-each \
proto=uci \
tc={{tc}}
elo-stc new baseline concurrency="2":
just playoff-elo {{new}} {{baseline}} 2048 {{concurrency}} 8+0.08
elo-ltc new baseline concurrency="2":
just playoff-elo {{new}} {{baseline}} 512 {{concurrency}} 40+0.4
[private]
playoff-elo new baseline rounds concurrency tc:
fastchess \
-engine name="$(basename {{new}})" cmd="{{new}}" \
-engine name="$(basename {{baseline}})" cmd="{{baseline}}" \
-openings file=./etc/openings/UHO_Lichess_4852_v1.epd format=epd order=random \
-ratinginterval {{concurrency}} \
-concurrency {{concurrency}} \
-rounds {{rounds}} -repeat \
-pgnout "./bins/$(basename {{new}})-vs-$(basename {{baseline}})-{{tc}}.pgn" \
-each \
proto=uci \
tc={{tc}}