Better client output; Kick to v17
This commit is contained in:
1 parent
9798654c36
commit
36fc79487b
3 files changed
+7
-5
No files matched your search
+4
-4
@@ -44,7 +44,7 @@ from concurrent.futures import ThreadPoolExecutor
|
|||||||
|
|
||||||
## Basic configuration of the Client. These timeouts can be changed at will
|
## Basic configuration of the Client. These timeouts can be changed at will
|
||||||
|
|
||||||
CLIENT_VERSION = 16 # Client version to send to the Server
|
CLIENT_VERSION = 17 # Client version to send to the Server
|
||||||
TIMEOUT_HTTP = 30 # Timeout in seconds for HTTP requests
|
TIMEOUT_HTTP = 30 # Timeout in seconds for HTTP requests
|
||||||
TIMEOUT_ERROR = 10 # Timeout in seconds when any errors are thrown
|
TIMEOUT_ERROR = 10 # Timeout in seconds when any errors are thrown
|
||||||
TIMEOUT_WORKLOAD = 30 # Timeout in seconds between workload requests
|
TIMEOUT_WORKLOAD = 30 # Timeout in seconds between workload requests
|
||||||
@@ -481,7 +481,7 @@ class Cutechess:
|
|||||||
|
|
||||||
# Join options together in the Cutechess format
|
# Join options together in the Cutechess format
|
||||||
options = ' option.'.join([''] + re.findall(r'"[^"]*"|\S+', options))
|
options = ' option.'.join([''] + re.findall(r'"[^"]*"|\S+', options))
|
||||||
return '-engine dir=Engines/ cmd=./%s proto=uci %s%s name=%s-%s' % (command, control, options, name, branch)
|
return '-engine dir=Engines/ cmd=./%s proto=uci %s%s name=%s' % (command, control, options, branch)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def pgnout_settings(config, timestamp, cutechess_idx):
|
def pgnout_settings(config, timestamp, cutechess_idx):
|
||||||
@@ -1130,11 +1130,11 @@ def download_network_weights(config, branch):
|
|||||||
# Some tests may not use Neural Networks
|
# Some tests may not use Neural Networks
|
||||||
engine_name = config.workload['test'][branch]['engine']
|
engine_name = config.workload['test'][branch]['engine']
|
||||||
network_sha = config.workload['test'][branch]['network']
|
network_sha = config.workload['test'][branch]['network']
|
||||||
|
network_name = config.workload['test'][branch]['netname']
|
||||||
if not network_sha or network_sha == 'None': return None
|
if not network_sha or network_sha == 'None': return None
|
||||||
|
|
||||||
# Log that we are obtaining a Neural Network
|
# Log that we are obtaining a Neural Network
|
||||||
pattern = 'Fetching Neural Network [ %s, %-4s ]'
|
print ('Fetching Neural Network [ %s, %-4s ]' % (branch, network_name))
|
||||||
print(pattern % (network_sha, branch.upper()))
|
|
||||||
|
|
||||||
# Fetch the Netural Network if we do not already have it
|
# Fetch the Netural Network if we do not already have it
|
||||||
network_path = os.path.join('Networks', network_sha)
|
network_path = os.path.join('Networks', network_sha)
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ REQUIRE_MANUAL_REGISTRATION = False # Disable the public facing registration pag
|
|||||||
OPENBENCH_CONFIG = {
|
OPENBENCH_CONFIG = {
|
||||||
|
|
||||||
# Server Client version control
|
# Server Client version control
|
||||||
'client_version' : 16,
|
'client_version' : 17,
|
||||||
|
|
||||||
# Generic Error Messages useful to those setting up their own instance
|
# Generic Error Messages useful to those setting up their own instance
|
||||||
'error' : {
|
'error' : {
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ def workload_to_dictionary(test, result, machine):
|
|||||||
'engine' : test.dev_engine,
|
'engine' : test.dev_engine,
|
||||||
'options' : test.dev_options,
|
'options' : test.dev_options,
|
||||||
'network' : test.dev_network,
|
'network' : test.dev_network,
|
||||||
|
'netname' : test.dev_netname,
|
||||||
'time_control' : test.dev_time_control,
|
'time_control' : test.dev_time_control,
|
||||||
'nps' : OPENBENCH_CONFIG['engines'][test.dev_engine]['nps'],
|
'nps' : OPENBENCH_CONFIG['engines'][test.dev_engine]['nps'],
|
||||||
'build' : OPENBENCH_CONFIG['engines'][test.dev_engine]['build'],
|
'build' : OPENBENCH_CONFIG['engines'][test.dev_engine]['build'],
|
||||||
@@ -223,6 +224,7 @@ def workload_to_dictionary(test, result, machine):
|
|||||||
'engine' : test.base_engine,
|
'engine' : test.base_engine,
|
||||||
'options' : test.base_options,
|
'options' : test.base_options,
|
||||||
'network' : test.base_network,
|
'network' : test.base_network,
|
||||||
|
'netname' : test.base_netname,
|
||||||
'time_control' : test.base_time_control,
|
'time_control' : test.base_time_control,
|
||||||
'nps' : OPENBENCH_CONFIG['engines'][test.base_engine]['nps'],
|
'nps' : OPENBENCH_CONFIG['engines'][test.base_engine]['nps'],
|
||||||
'build' : OPENBENCH_CONFIG['engines'][test.base_engine]['build'],
|
'build' : OPENBENCH_CONFIG['engines'][test.base_engine]['build'],
|
||||||
|
|||||||
Reference in new issue
Block a user