Correct massive flaws in Datagen genfens seeding

This commit is contained in:
Andrew Grant committed 2024-09-18 23:10:52 -04:00
1 parent d570c5c937
commit 795f1a0528
3 files changed
+10 -3

No files matched your search

+8 -1
View File
@@ -67,6 +67,13 @@ def genfens_book_input_name(config):
return 'None' if book_none else os.path.join('Books', book_name) return 'None' if book_none else os.path.join('Books', book_name)
def genfens_seed(config, N_per_thread, thread_index):
x = config.workload['test']['book_seed']
y = config.workload['test']['book_index']
return (x << 32) + (y + N_per_thread * thread_index)
def genfens_command_builder(binary, network, private, N, book, extra_args, seed): def genfens_command_builder(binary, network, private, N, book, extra_args, seed):
command = ['./%s' % (binary)] command = ['./%s' % (binary)]
@@ -117,7 +124,7 @@ def create_genfens_opening_book(config, binary_name, network):
processes = [ processes = [
multiprocessing.Process( multiprocessing.Process(
target=genfens_single_threaded, target=genfens_single_threaded,
args=(genfens_command_builder(*args, seed + ii * N), output)) args=(genfens_command_builder(*args, genfens_seed(config, N, ii)), output))
for ii in range(config.threads) 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 ## Basic configuration of the Client. These timeouts can be changed at will
CLIENT_VERSION = 30 # Client version to send to the Server CLIENT_VERSION = 31 # 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
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"client_version" : 30, "client_version" : 31,
"client_repo_url" : "https://github.com/AndyGrant/OpenBench", "client_repo_url" : "https://github.com/AndyGrant/OpenBench",
"client_repo_ref" : "master", "client_repo_ref" : "master",