From 1ac76bdcc1c57853b483701eb6f096db7aaee3ae Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 22 Nov 2023 16:23:21 -0500 Subject: [PATCH] Optimize default SPSA to avoid CPU downtime Left Column indicates the number of threads of a match N= represents the number of games ( not game pairs ) The values in the table are the % of CPU time wasted. This is based on LTC data from Torch. The Single Modeling area can be used to understand SPRT tests as well. We find that sufficiently large N is needed to avoid massive waste. Multiple distribution is significanly more prone to waste CPU time Results for Single Modeling: +----+----------+----------+-----------+----------+-----------+-----------+-----------+ | | N=1 | N=2 | N=3 | N=4 | N=8 | N=16 | N=32 | +====+==========+==========+===========+==========+===========+===========+===========+ | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +----+----------+----------+-----------+----------+-----------+-----------+-----------+ | 16 | 0.187964 | 0.154541 | 0.0953438 | 0.111055 | 0.0682209 | 0.0419675 | 0.0234031 | +----+----------+----------+-----------+----------+-----------+-----------+-----------+ | 30 | 0.233956 | 0.250168 | 0.247093 | 0.160325 | 0.17584 | 0.0490092 | 0.0233125 | +----+----------+----------+-----------+----------+-----------+-----------+-----------+ | 60 | 0.3319 | 0.283755 | 0.310635 | 0.315316 | 0.0914697 | 0.0474954 | 0.0229517 | +----+----------+----------+-----------+----------+-----------+-----------+-----------+ Results for Multiple Modeling: +----+----------+----------+----------+----------+----------+----------+-----------+ | | N=1 | N=2 | N=3 | N=4 | N=8 | N=16 | N=32 | +====+==========+==========+==========+==========+==========+==========+===========+ | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +----+----------+----------+----------+----------+----------+----------+-----------+ | 16 | 0.187964 | 0.108087 | 0.112321 | 0.18708 | 0.178225 | 0.109092 | 0.0847329 | +----+----------+----------+----------+----------+----------+----------+-----------+ | 30 | 0.233956 | 0.228522 | 0.26862 | 0.263978 | 0.167372 | 0.182215 | 0.0831574 | +----+----------+----------+----------+----------+----------+----------+-----------+ | 60 | 0.3319 | 0.352034 | 0.270229 | 0.291731 | 0.219136 | 0.178662 | 0.0936702 | +----+----------+----------+----------+----------+----------+----------+-----------+ --- Config/config.json | 1 - Engines/Ethereal.json | 10 +++------- Templates/OpenBench/create_workload.html | 8 ++++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/Config/config.json b/Config/config.json index 9addb76..8dd1ade 100644 --- a/Config/config.json +++ b/Config/config.json @@ -36,7 +36,6 @@ "Seer", "Stash", "Stockfish", - "Torch", "Weiss", "Winter", "Zahak" diff --git a/Engines/Ethereal.json b/Engines/Ethereal.json index a054480..7ef72b8 100644 --- a/Engines/Ethereal.json +++ b/Engines/Ethereal.json @@ -49,13 +49,9 @@ "tune_presets" : { "default" : { - "book_name" : "UHO_4060_v2.epd", - "win_adj" : "movecount=3 score=400", - "draw_adj" : "movenumber=40 movecount=8 score=10", - "spsa_reporting_type" : "BULK", - "spsa_distribution_type" : "MULTIPLE", - "spsa_iterations" : 25000, - "spsa_pairs_per" : 8 + "book_name" : "UHO_4060_v2.epd", + "win_adj" : "movecount=3 score=400", + "draw_adj" : "movenumber=40 movecount=8 score=10" }, "STC" : { diff --git a/Templates/OpenBench/create_workload.html b/Templates/OpenBench/create_workload.html index 61bb6df..dcc4a9e 100644 --- a/Templates/OpenBench/create_workload.html +++ b/Templates/OpenBench/create_workload.html @@ -105,8 +105,8 @@
@@ -168,10 +168,10 @@
- +
- +
{% endif %}