From e229b26f9daa030b4c8999a5fca32575514bf9cb Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 4 Apr 2023 21:12:16 -0400 Subject: [PATCH] Move all configurations with books and engines to .json files --- .gitignore | 8 +- Books/books.json | 43 ++++ Engines/4ku.json | 45 ++++ Engines/Berserk.json | 47 ++++ Engines/Bit-Genie.json | 45 ++++ Engines/BlackMarlin.json | 47 ++++ Engines/Demolito.json | 46 ++++ Engines/Drofa.json | 45 ++++ Engines/Ethereal.json | 44 ++++ Engines/FabChess.json | 45 ++++ Engines/Halogen.json | 45 ++++ Engines/Igel.json | 45 ++++ Engines/Koivisto.json | 47 ++++ Engines/Laser.json | 45 ++++ Engines/RubiChess.json | 45 ++++ Engines/Seer.json | 47 ++++ Engines/Stash.json | 46 ++++ Engines/Weiss.json | 45 ++++ Engines/Winter.json | 46 ++++ Engines/Zahak.json | 46 ++++ OpenBench/config.py | 544 ++------------------------------------- cleanup.sh | 12 - 22 files changed, 888 insertions(+), 540 deletions(-) create mode 100644 Books/books.json create mode 100644 Engines/4ku.json create mode 100644 Engines/Berserk.json create mode 100644 Engines/Bit-Genie.json create mode 100644 Engines/BlackMarlin.json create mode 100644 Engines/Demolito.json create mode 100644 Engines/Drofa.json create mode 100644 Engines/Ethereal.json create mode 100644 Engines/FabChess.json create mode 100644 Engines/Halogen.json create mode 100644 Engines/Igel.json create mode 100644 Engines/Koivisto.json create mode 100644 Engines/Laser.json create mode 100644 Engines/RubiChess.json create mode 100644 Engines/Seer.json create mode 100644 Engines/Stash.json create mode 100644 Engines/Weiss.json create mode 100644 Engines/Winter.json create mode 100644 Engines/Zahak.json delete mode 100755 cleanup.sh diff --git a/.gitignore b/.gitignore index 75fb2a5..09f477f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,13 @@ *.pyc Client/* -!Client/cleanup.sh OpenBench/migrations/* + credentials +credentials.* +db.sqlite3 Scripts/Binaries/* Scripts/Networks/* -Scripts/Repositories/* \ No newline at end of file +Scripts/Repositories/* + +Media/* \ No newline at end of file diff --git a/Books/books.json b/Books/books.json new file mode 100644 index 0000000..2aa0b49 --- /dev/null +++ b/Books/books.json @@ -0,0 +1,43 @@ +{ + "2moves_v1.epd" : { + "name" : "2moves_v1.epd", + "sha" : "7bec98239836f219dc41944a768c0506abed950aaec48da69a0782643e90f237", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/2moves_v1.epd.zip" + }, + + "8moves_v3.epd" : { + "name" : "8moves_v3.epd", + "sha" : "1f055af431656f09ee6a09d2448e0b876125f78bb7b404fca2031c403a1541e5", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/8moves_v3.epd.zip" + }, + + "3moves_FRC.epd" : { + "name" : "3moves_FRC.epd", + "sha" : "6bf81e1ada6a3306bbc8356f7bca1e2984a2828d658799992d5443b7179c934d", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/3moves_FRC.epd.zip" + }, + + "4moves_noob.epd" : { + "name" : "4moves_noob.epd", + "sha" : "4be746a91e3f8af0c9344b1e72d611e9fcfe486843867a55760970a4896f284d", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/4moves_noob.epd.zip" + }, + + "Pohl.epd" : { + "name" : "Pohl.epd", + "sha" : "b3e64e0dab84cf451a9ac7ef031f5a2bbcf16c7e21be95298fb03cbf021f5466", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Pohl.epd.zip" + }, + + "Pohl.pgn" : { + "name" : "Pohl.pgn", + "sha" : "aaa7559c5d94e592fe5cca3586cb099d8fc5f13428d4ce84afc4b97811241c7e", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Pohl.pgn.zip" + }, + + "DFRC.epd" : { + "name" : "DFRC.epd", + "sha" : "648c447ef40614a44d13b78911e81470d8ddb0d3b2711c1b180e990871f5db4f", + "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/DFRC.epd.zip" + } +} \ No newline at end of file diff --git a/Engines/4ku.json b/Engines/4ku.json new file mode 100644 index 0000000..5fdb5c7 --- /dev/null +++ b/Engines/4ku.json @@ -0,0 +1,45 @@ +{ + "nps": 1225000, + "base": "master", + "book": "Pohl.pgn", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/kz04px/4ku", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 64, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Berserk.json b/Engines/Berserk.json new file mode 100644 index 0000000..feb7263 --- /dev/null +++ b/Engines/Berserk.json @@ -0,0 +1,47 @@ +{ + "nps": 1325000, + "base": "main", + "book": "Pohl.epd", + "bounds": "[0.00, 3.00]", + "source": "https://github.com/jhonnold/berserk", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "gcc" + ], + "cpuflags": [ + "__AVX2__", + "__FMA__", + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "10.0+0.1" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "60.0+0.6" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Bit-Genie.json b/Engines/Bit-Genie.json new file mode 100644 index 0000000..138b795 --- /dev/null +++ b/Engines/Bit-Genie.json @@ -0,0 +1,45 @@ +{ + "nps": 1975000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/Aryan1508/Bit-Genie", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/BlackMarlin.json b/Engines/BlackMarlin.json new file mode 100644 index 0000000..beebb9c --- /dev/null +++ b/Engines/BlackMarlin.json @@ -0,0 +1,47 @@ +{ + "nps": 1075000, + "base": "main", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/dsekercioglu/blackmarlin", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "", + "compilers": [ + "cargo>=1.57.0" + ], + "cpuflags": [ + "__AVX2__", + "__FMA__", + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Demolito.json b/Engines/Demolito.json new file mode 100644 index 0000000..9e0db66 --- /dev/null +++ b/Engines/Demolito.json @@ -0,0 +1,46 @@ +{ + "nps": 1300000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/lucasart/Demolito", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "clang", + "gcc" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 32, + "tc": "32.0+0.32" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 32, + "tc": "4.0+0.04" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 128, + "tc": "16.0+0.16" + } + ] +} \ No newline at end of file diff --git a/Engines/Drofa.json b/Engines/Drofa.json new file mode 100644 index 0000000..26d165c --- /dev/null +++ b/Engines/Drofa.json @@ -0,0 +1,45 @@ +{ + "nps": 1250000, + "base": "master", + "book": "4moves_noob.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/justNo4b/Drofa", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Ethereal.json b/Engines/Ethereal.json new file mode 100644 index 0000000..9b10d14 --- /dev/null +++ b/Engines/Ethereal.json @@ -0,0 +1,44 @@ +{ + "private" : false, + "nps" : 1050000, + "base" : "master", + "source" : "https://github.com/AndyGrant/Ethereal", + + "bounds" : "[0.00, 3.00]", + "book" : "Pohl.epd", + "win_adj" : "movecount=3 score=400", + "draw_adj" : "movenumber=40 movecount=8 score=10", + + "build": { + "path" : "src", + "compilers" : ["clang", "gcc"], + "cpuflags" : ["__AVX2__", "__FMA__", "__POPCNT__"] + }, + + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "10.0+0.1" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "60.0+0.6" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/FabChess.json b/Engines/FabChess.json new file mode 100644 index 0000000..9a4bfa2 --- /dev/null +++ b/Engines/FabChess.json @@ -0,0 +1,45 @@ +{ + "nps": 1000000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/fabianvdW/FabChess", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "", + "compilers": [ + "cargo>=1.41.0" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Halogen.json b/Engines/Halogen.json new file mode 100644 index 0000000..86defcb --- /dev/null +++ b/Engines/Halogen.json @@ -0,0 +1,45 @@ +{ + "nps": 1800000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/KierenP/Halogen", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Igel.json b/Engines/Igel.json new file mode 100644 index 0000000..027d090 --- /dev/null +++ b/Engines/Igel.json @@ -0,0 +1,45 @@ +{ + "nps": 450000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 3.00]", + "source": "https://github.com/vshcherbyna/igel", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "10.0+0.1" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "60.0+0.6" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Koivisto.json b/Engines/Koivisto.json new file mode 100644 index 0000000..a7f8149 --- /dev/null +++ b/Engines/Koivisto.json @@ -0,0 +1,47 @@ +{ + "nps": 1200000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 2.50]", + "source": "https://github.com/Luecx/Koivisto", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src_files", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__AVX2__", + "__FMA__", + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Laser.json b/Engines/Laser.json new file mode 100644 index 0000000..a6c572a --- /dev/null +++ b/Engines/Laser.json @@ -0,0 +1,45 @@ +{ + "nps": 935000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/jeffreyan11/uci-chess-engine", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/RubiChess.json b/Engines/RubiChess.json new file mode 100644 index 0000000..ac2b8a4 --- /dev/null +++ b/Engines/RubiChess.json @@ -0,0 +1,45 @@ +{ + "nps": 925000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/Matthies/RubiChess", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "10.0+0.1" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "60.0+0.6" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Seer.json b/Engines/Seer.json new file mode 100644 index 0000000..e58a439 --- /dev/null +++ b/Engines/Seer.json @@ -0,0 +1,47 @@ +{ + "nps": 875000, + "base": "main", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/connormcmonigle/seer-nnue", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "build", + "compilers": [ + "g++>=9.0.0" + ], + "cpuflags": [ + "__AVX2__", + "__FMA__", + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 32, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Stash.json b/Engines/Stash.json new file mode 100644 index 0000000..6b99bfa --- /dev/null +++ b/Engines/Stash.json @@ -0,0 +1,46 @@ +{ + "nps": 1625000, + "base": "master", + "book": "4moves_noob.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/mhouppin/stash-bot", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "gcc", + "clang" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 16, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Weiss.json b/Engines/Weiss.json new file mode 100644 index 0000000..0a6b25f --- /dev/null +++ b/Engines/Weiss.json @@ -0,0 +1,45 @@ +{ + "nps": 1700000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[-1.00, 4.00]", + "source": "https://github.com/TerjeKir/weiss", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "src", + "compilers": [ + "gcc" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 32, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 128, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 128, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 512, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Winter.json b/Engines/Winter.json new file mode 100644 index 0000000..6ab12c5 --- /dev/null +++ b/Engines/Winter.json @@ -0,0 +1,46 @@ +{ + "nps": 625000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/rosenthj/Winter", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "", + "compilers": [ + "clang++", + "g++" + ], + "cpuflags": [ + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/Engines/Zahak.json b/Engines/Zahak.json new file mode 100644 index 0000000..a1780ea --- /dev/null +++ b/Engines/Zahak.json @@ -0,0 +1,46 @@ +{ + "nps": 850000, + "base": "master", + "book": "Pohl.epd", + "bounds": "[0.00, 5.00]", + "source": "https://github.com/amanjpro/zahak", + "private": false, + "win_adj": "movecount=3 score=400", + "draw_adj": "movenumber=40 movecount=8 score=10", + "build": { + "path": "", + "compilers": [ + "go" + ], + "cpuflags": [ + "__AVX__", + "__POPCNT__" + ] + }, + "testmodes": [ + { + "id": "STC", + "th": 1, + "hash": 8, + "tc": "8.0+0.08" + }, + { + "id": "LTC", + "th": 1, + "hash": 64, + "tc": "40.0+0.4" + }, + { + "id": "SMP STC", + "th": 8, + "hash": 64, + "tc": "5.0+0.05" + }, + { + "id": "SMP LTC", + "th": 8, + "hash": 256, + "tc": "20.0+0.2" + } + ] +} \ No newline at end of file diff --git a/OpenBench/config.py b/OpenBench/config.py index 36b2456..1c5cd8a 100644 --- a/OpenBench/config.py +++ b/OpenBench/config.py @@ -18,11 +18,22 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -USE_CROSS_APPROVAL = False +import json, os.path +from OpenSite.settings import PROJECT_PATH -REQUIRE_LOGIN_TO_VIEW = True +def load_json_config(*path): + with open(os.path.join(PROJECT_PATH, *path)) as fin: + return json.load(fin) -REQUIRE_MANUAL_REGISTRATION = True +def load_folder_of_configs(*path): + return { + fname.removesuffix('.json') : load_json_config(*path, fname) + for fname in os.listdir(os.path.join(PROJECT_PATH, *path)) if fname.endswith('.json') + } + +USE_CROSS_APPROVAL = False # Require a second user to approve patches +REQUIRE_LOGIN_TO_VIEW = True # Block all content but Login and Regiser by default +REQUIRE_MANUAL_REGISTRATION = True # Disable the public facing registration page OPENBENCH_CONFIG = { @@ -47,528 +58,9 @@ OPENBENCH_CONFIG = { 'confidence' : '[0.05, 0.05]', # SPRT Type I/II Confidence }, - # Book Configuration. When addding a book, follow the provided template. - # The SHA is defined by hashlib.sha256(book.read().encode('utf-8')).hexdigest(). - # Client.py has this exact code to generate and verify sha256 values, as an example. + # Take a look at Books/books.json + 'books' : load_json_config('Books', 'books.json'), - 'books' : { - - '2moves_v1.epd' : { - 'name' : '2moves_v1.epd', - 'sha' : '7bec98239836f219dc41944a768c0506abed950aaec48da69a0782643e90f237', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/2moves_v1.epd.zip', - }, - - '8moves_v3.epd' : { - 'name' : '8moves_v3.epd', - 'sha' : '1f055af431656f09ee6a09d2448e0b876125f78bb7b404fca2031c403a1541e5', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/8moves_v3.epd.zip', - }, - - '3moves_FRC.epd' : { - 'name' : '3moves_FRC.epd', - 'sha' : '6bf81e1ada6a3306bbc8356f7bca1e2984a2828d658799992d5443b7179c934d', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/3moves_FRC.epd.zip', - }, - - '4moves_noob.epd' : { - 'name' : '4moves_noob.epd', - 'sha' : '4be746a91e3f8af0c9344b1e72d611e9fcfe486843867a55760970a4896f284d', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/4moves_noob.epd.zip', - }, - - 'Pohl.epd' : { - 'name' : 'Pohl.epd', - 'sha' : 'b3e64e0dab84cf451a9ac7ef031f5a2bbcf16c7e21be95298fb03cbf021f5466', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Pohl.epd.zip', - }, - - 'Pohl.pgn' : { - 'name' : 'Pohl.pgn', - 'sha' : 'aaa7559c5d94e592fe5cca3586cb099d8fc5f13428d4ce84afc4b97811241c7e', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Pohl.pgn.zip', - }, - - 'DFRC.epd' : { - 'name' : 'DFRC.epd', - 'sha' : '648c447ef40614a44d13b78911e81470d8ddb0d3b2711c1b180e990871f5db4f', - 'source' : 'https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/DFRC.epd.zip', - }, - }, - - - # Engine Configuration. All engines must have a name, a source repo, - # a set of paramaters for each standard test type, as well as a scaled - # NPS value, which is used to normalize speed across all workers. - - 'engines' : { - - 'Ethereal' : { - - 'nps' : 1050000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 3.00]', - 'source' : 'https://github.com/AndyGrant/Ethereal', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['clang', 'gcc'], - 'cpuflags' : ['__AVX2__', '__FMA__', '__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '10.0+0.1' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '60.0+0.6' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Laser' : { - - 'nps' : 935000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/jeffreyan11/uci-chess-engine', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Weiss' : { - - 'nps' : 1700000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[-1.00, 4.00]', - 'source' : 'https://github.com/TerjeKir/weiss', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['gcc'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 32, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 128, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 128, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 512, 'tc' : '20.0+0.2' }, - ], - }, - - 'Demolito' : { - - 'nps' : 1300000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/lucasart/Demolito', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['clang', 'gcc'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 32, 'tc' : '32.0+0.32'}, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 32, 'tc' : '4.0+0.04' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 128, 'tc' : '16.0+0.16'}, - ], - }, - - 'RubiChess' : { - - 'nps' : 925000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/Matthies/RubiChess', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '10.0+0.1' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '60.0+0.6' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'FabChess' : { - - 'nps' : 1000000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/fabianvdW/FabChess', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : '', - 'compilers' : ['cargo>=1.41.0'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Igel' : { - - 'nps' : 450000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 3.00]', - 'source' : 'https://github.com/vshcherbyna/igel', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '10.0+0.1' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '60.0+0.6' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Winter' : { - - 'nps' : 625000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/rosenthj/Winter', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : '', - 'compilers' : ['clang++', 'g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Halogen' : { - - 'nps' : 1800000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/KierenP/Halogen', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Stash' : { - - 'nps' : 1625000, - 'base' : 'master', - 'book' : '4moves_noob.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/mhouppin/stash-bot', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['gcc', 'clang'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 16, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Seer' : { - - 'nps' : 875000, - 'base' : 'main', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/connormcmonigle/seer-nnue', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'build', - 'compilers' : ['g++>=9.0.0'], - 'cpuflags' : ['__AVX2__', '__FMA__', '__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 32, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Koivisto' : { - - 'nps' : 1200000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 2.50]', - 'source' : 'https://github.com/Luecx/Koivisto', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src_files', - 'compilers' : ['g++'], - 'cpuflags' : ['__AVX2__', '__FMA__', '__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Drofa' : { - - 'nps' : 1250000, - 'base' : 'master', - 'book' : '4moves_noob.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/justNo4b/Drofa', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : '', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Bit-Genie' : { - - 'nps' : 1975000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/Aryan1508/Bit-Genie', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Berserk' : { - - 'nps' : 1325000, - 'base' : 'main', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 3.00]', - 'source' : 'https://github.com/jhonnold/berserk', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : 'src', - 'compilers' : ['gcc'], - 'cpuflags' : ['__AVX2__', '__FMA__', '__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '10.0+0.1' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '60.0+0.6' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'Zahak' : { - - 'nps' : 850000, - 'base' : 'master', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/amanjpro/zahak', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : '', - 'compilers' : ['go'], - 'cpuflags' : ['__AVX__', '__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - 'BlackMarlin' : { - - 'nps' : 1075000, - 'base' : 'main', - 'book' : 'Pohl.epd', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/dsekercioglu/blackmarlin', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : '', - 'compilers': ['cargo>=1.57.0'], - 'cpuflags' : ['__AVX2__', '__FMA__', '__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 8, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - - '4ku' : { - - 'nps' : 1225000, - 'base' : 'master', - 'book' : 'Pohl.pgn', - 'bounds' : '[0.00, 5.00]', - 'source' : 'https://github.com/kz04px/4ku', - 'private' : False, - - 'win_adj' : 'movecount=3 score=400', - 'draw_adj' : 'movenumber=40 movecount=8 score=10', - - 'build' : { - 'path' : '', - 'compilers' : ['g++'], - 'cpuflags' : ['__POPCNT__'], - }, - - 'testmodes' : [ - { 'id' : 'STC', 'th' : 1, 'hash' : 64, 'tc' : '8.0+0.08' }, - { 'id' : 'LTC', 'th' : 1, 'hash' : 64, 'tc' : '40.0+0.4' }, - { 'id' : 'SMP STC', 'th' : 8, 'hash' : 64, 'tc' : '5.0+0.05' }, - { 'id' : 'SMP LTC', 'th' : 8, 'hash' : 256, 'tc' : '20.0+0.2' }, - ], - }, - }, + # Take a look at json file in Engines/ + 'engines' : load_folder_of_configs('Engines'), } diff --git a/cleanup.sh b/cleanup.sh deleted file mode 100755 index 111b7f6..0000000 --- a/cleanup.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -rm -i db.sqlite3 -rm -r OpenBench/migrations/* -rm -r OpenBench/__pycache__/* -rm -r OpenSite/__pycache__/* - -python3 manage.py makemigrations -python3 manage.py migrate -python3 manage.py migrate --run-syncdb - -python3 manage.py createsuperuser \ No newline at end of file