Default to 250 games per task. Move config settings near top

This commit is contained in:
AndyGrant committed 2018-07-21 19:59:50 -04:00
1 parent 4fc6588414
commit e87a67c41e
1 file changed
+7 -4
+7 -4
View File
@@ -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'
)