Skip to content

Commit

Permalink
Re-enable setting Threads option
Browse files Browse the repository at this point in the history
Monty has SMP support now.
  • Loading branch information
Viren6 committed Aug 16, 2024
1 parent 54e3b4d commit 7f972bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/montytest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
according to the route/URL mapping defined in `__init__.py`.
"""

WORKER_VERSION = 8
WORKER_VERSION = 9


@exception_view_config(HTTPException)
Expand Down
5 changes: 2 additions & 3 deletions worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,9 +1242,8 @@ def parse_options(s):
result["worker_info"]["nps"] = float(base_nps)

threads_cmd = []
# This is disabled for now because monty doesn't have the Threads option
# if not any("Threads" in s for s in new_options + base_options):
# threads_cmd = ["option.Threads={}".format(threads)]
if not any("Threads" in s for s in new_options + base_options):
threads_cmd = ["option.Threads={}".format(threads)]

# If nodestime is being used, give engines extra grace time to
# make time losses virtually impossible.
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 8, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "rFlovYBYNuqCmEJCNV1JRl1MmgHxEJLf/56xpVq39OSwy2HtxDwEhnwLz2V9EfNL", "games.py": "Gy3Y9/DisuptYUu/zV4ZViHUU/jSJ2a5WGSPyjP9hTRxDqV47xir4RBWhkh7IIbi"}
{"__version": 9, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "CpPkp1BXzFPTAcGu/jprcPmOmwKUIOdwJVoMs04mydOm9/fN5MTCEjFv6OjQqxMG", "games.py": "l7/kK9dTab5z3RtSqlw1snkkAjJpj1JdM+o9QiefNVCSetQvUTMWpLT1t+e2Rt4u"}
2 changes: 1 addition & 1 deletion worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
MIN_CARGO_MAJOR = 1
MIN_CARGO_MINOR = 77

WORKER_VERSION = 8
WORKER_VERSION = 9
FILE_LIST = ["updater.py", "worker.py", "games.py"]
HTTP_TIMEOUT = 30.0
INITIAL_RETRY_TIME = 15.0
Expand Down

0 comments on commit 7f972bd

Please sign in to comment.