Update focus setting #5

Merged
Kirill020708 merged 1 commits from patch-2 into master 2026-04-20 21:48:32 +02:00
+2 -3
View File
@@ -166,8 +166,7 @@ def compute_resource_distribution(workloads, machine, has_focus):
for x in OpenBench.utils.getRecentMachines(): for x in OpenBench.utils.getRecentMachines():
if x != machine and x.workload in worker_dist: if x != machine and x.workload in worker_dist:
if has_focus or worker_dist[x.workload]['engine'] not in x.info.get('focus', []): worker_dist[x.workload]['threads'] += x.info['concurrency']
worker_dist[x.workload]['threads'] += x.info['concurrency']
# Count of tests that exist for a particular dev_engine # Count of tests that exist for a particular dev_engine
@@ -361,4 +360,4 @@ def game_distribution(test, machine):
'cutechess-count' : spsa_count if is_multiple_spsa else worker_sockets, 'cutechess-count' : spsa_count if is_multiple_spsa else worker_sockets,
'concurrency-per' : 2 if is_multiple_spsa else max_concurrency, 'concurrency-per' : 2 if is_multiple_spsa else max_concurrency,
'games-per-cutechess' : 2 * test.workload_size * (1 if is_multiple_spsa else max_concurrency), 'games-per-cutechess' : 2 * test.workload_size * (1 if is_multiple_spsa else max_concurrency),
} }