From 9f53b086c052638297f93abd1f1f1aa539831727 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 1 Nov 2023 01:26:15 -0400 Subject: [PATCH] Additional testing and add Client output --- Client/Client.py | 9 ++++++++- OpenBench/workloads/get_workload.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Client/Client.py b/Client/Client.py index ecb2ab2..275c23d 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -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: diff --git a/OpenBench/workloads/get_workload.py b/OpenBench/workloads/get_workload.py index 86f0738..cdd4dd3 100644 --- a/OpenBench/workloads/get_workload.py +++ b/OpenBench/workloads/get_workload.py @@ -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