Additional testing and add Client output

This commit is contained in:
andrew committed 2023-11-01 01:26:15 -04:00
1 parent b577315b57
commit 9f53b086c0
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -1076,7 +1076,14 @@ def complete_workload(config):
scale_factor = base_factor if dev_engine != base_engine else avg_factor
# 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
with ThreadPoolExecutor(max_workers=cutechess_cnt) as executor:
+1 -1
View File
@@ -159,7 +159,7 @@ def valid_assignment(machine, test, distribution):
is_spsa = test.test_mode == 'SPSA'
# 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
# Refuse to assign more workers than the test will allow