Have server provide explicit int32 seeds

This commit is contained in:
Andrew Grant committed 2024-09-20 20:32:46 -04:00
1 parent 795f1a0528
commit 076f7af5ea
4 files changed
+9 -7

No files matched your search

+3 -2
View File
@@ -112,19 +112,20 @@ def create_genfens_opening_book(config, binary_name, network):
# Format: ./engine "genfens N seed S book <None|book.epd>" "quit"
N = genfens_required_openings_each(config)
seed = config.workload['test']['book_index']
seeds = config.workload['test']['genfens_seeds']
args = genfens_command_args(config, binary_name, network)
start_time = time.time()
output = multiprocessing.Queue()
print ('\nGenerating %d Openings using %d Threads...' % (N * config.threads, config.threads))
# Split the work over many threads. Ensure the seed varies by the thread,
# number in accordance with how many openings each thread will generate
processes = [
multiprocessing.Process(
target=genfens_single_threaded,
args=(genfens_command_builder(*args, genfens_seed(config, N, ii)), output))
args=(genfens_command_builder(*args, seeds[ii]), output))
for ii in range(config.threads)
]
+1 -1
View File
@@ -54,7 +54,7 @@ from genfens import create_genfens_opening_book
## Basic configuration of the Client. These timeouts can be changed at will
CLIENT_VERSION = 31 # Client version to send to the Server
CLIENT_VERSION = 32 # Client version to send to the Server
TIMEOUT_HTTP = 30 # Timeout in seconds for HTTP requests
TIMEOUT_ERROR = 10 # Timeout in seconds when any errors are thrown
TIMEOUT_WORKLOAD = 30 # Timeout in seconds between workload requests