From 9b4c783abcf6dd693cced17f282e6bf204c75a20 Mon Sep 17 00:00:00 2001 From: cosmobobak Date: Sun, 7 Dec 2025 21:14:15 +0000 Subject: [PATCH] bugfix for smp --- OpenBench/workloads/get_workload.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenBench/workloads/get_workload.py b/OpenBench/workloads/get_workload.py index 8430855b..4b4c451b 100644 --- a/OpenBench/workloads/get_workload.py +++ b/OpenBench/workloads/get_workload.py @@ -353,9 +353,10 @@ def game_distribution(test, machine): if machine.info['physical_cores'] < worker_threads and dev_threads != base_threads: worker_threads = worker_threads // 2 - # Ignore sockets for concurrent match runners, when playing with more than one thread - if max(dev_threads, base_threads) > 1: - worker_sockets = 1 + # Divide sockets by threads. + num_threads = max(dev_threads, base_threads) + if num_threads > 1: + worker_sockets = max(worker_sockets // num_threads, 1) # Max possible concurrent engine games, per copy of match runner max_concurrency = (worker_threads // worker_sockets) // max(dev_threads, base_threads)