Correct massive flaws in Datagen genfens seeding
This commit is contained in:
1 parent
d570c5c937
commit
795f1a0528
3 files changed
+10
-3
No files matched your search
+8
-1
@@ -67,6 +67,13 @@ def genfens_book_input_name(config):
|
||||
|
||||
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):
|
||||
|
||||
command = ['./%s' % (binary)]
|
||||
@@ -117,7 +124,7 @@ def create_genfens_opening_book(config, binary_name, network):
|
||||
processes = [
|
||||
multiprocessing.Process(
|
||||
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)
|
||||
]
|
||||
|
||||
|
||||
+1
-1
@@ -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 = 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_ERROR = 10 # Timeout in seconds when any errors are thrown
|
||||
TIMEOUT_WORKLOAD = 30 # Timeout in seconds between workload requests
|
||||
|
||||
Reference in new issue
Block a user