Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions OpenBench/workloads/get_workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down