Additional testing and add Client output
This commit is contained in:
1 parent
b577315b57
commit
9f53b086c0
2 files changed
+8
-1
No files matched your search
@@ -1077,6 +1077,13 @@ def complete_workload(config):
|
|||||||
|
|
||||||
# Server knows how many copies of Cutechess we should run
|
# Server knows how many copies of Cutechess we should run
|
||||||
cutechess_cnt = config.workload['distribution']['cutechess-count']
|
cutechess_cnt = config.workload['distribution']['cutechess-count']
|
||||||
|
concurrency_per = config.workload['distribution']['concurrency-per']
|
||||||
|
games_per = config.workload['distribution']['games-per-cutechess']
|
||||||
|
|
||||||
|
print () # Record this information
|
||||||
|
print ('%d cutechess copies' % (cutechess_cnt))
|
||||||
|
print ('%d concurrent games per copy' % (concurrency_per))
|
||||||
|
print ('%d total games per cutechess copy' % (games_per))
|
||||||
|
|
||||||
# Launch and manage all of the Cutechess workers
|
# Launch and manage all of the Cutechess workers
|
||||||
with ThreadPoolExecutor(max_workers=cutechess_cnt) as executor:
|
with ThreadPoolExecutor(max_workers=cutechess_cnt) as executor:
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ def valid_assignment(machine, test, distribution):
|
|||||||
is_spsa = test.test_mode == 'SPSA'
|
is_spsa = test.test_mode == 'SPSA'
|
||||||
|
|
||||||
# Refuse if there are not enough threads for the test
|
# Refuse if there are not enough threads for the test
|
||||||
if (1 + is_spsa) * max(dev_threads, base_threads) > threads):
|
if (1 + is_spsa) * max(dev_threads, base_threads) > threads:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Refuse to assign more workers than the test will allow
|
# Refuse to assign more workers than the test will allow
|
||||||
|
|||||||
Reference in new issue
Block a user