From e87a67c41e15263ed0e0d305250ab0606bea8895 Mon Sep 17 00:00:00 2001 From: AndyGrant Date: Sat, 21 Jul 2018 19:59:50 -0400 Subject: [PATCH] Default to 250 games per task. Move config settings near top --- Client/OpenBench.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Client/OpenBench.py b/Client/OpenBench.py index c974051..df3f628 100644 --- a/Client/OpenBench.py +++ b/Client/OpenBench.py @@ -3,6 +3,12 @@ from __future__ import print_function import ast, argparse, time, sys, platform, multiprocessing, hashlib import shutil, subprocess, requests, zipfile, os, math, json + +## Configuration +HTTP_TIMEOUT = 30 # Timeout in seconds for web requests +GAMES_PER_TASK = 250 # Games to complete for each workload + + # Run from any location ... os.chdir(os.path.dirname(os.path.abspath(__file__))) @@ -26,9 +32,6 @@ IS_WINDOWS = platform.system() == 'Windows' # Server wants to identify different machines OS_NAME = platform.system() + ' ' + platform.release() -# Timeout for .get and .post requests (in seconds) -HTTP_TIMEOUT = 30 - # Solution taken from Fishtest def killProcess(process): try: @@ -165,7 +168,7 @@ def getCutechessCommand(data, scalefactor): ' -resign movecount=3 score=400' ' -draw movenumber=40 movecount=8 score=10' ' -concurrency ' + str(int(math.floor(THREADS / max(devthreads, basethreads)))) + - ' -games 1000' + ' -games ' + str(GAMES_PER_TASK) + ' -recover' ' -wait 10' )