From baf2fac2bf657c187cdc65b683ac7a96baefd2ae Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 30 Jul 2023 20:41:05 -0400 Subject: [PATCH] Update hyperthreading rules for task distribution There is now only one rule: Thread imbalances cannot be tested using workers who have more threads than physical cores --- OpenBench/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenBench/utils.py b/OpenBench/utils.py index 926039d..ec720ca 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -735,8 +735,8 @@ def test_maps_onto_thread_count(test, threads, sockets, hyperthreads): if max(dev_threads, base_threads) > (threads / sockets): return False - # Intentional Thread Imbalance, or real cores, or evenly distributed - return dev_threads != base_threads or not hyperthreads or (threads / sockets) % dev_threads == 0 + # Refuse to run thread-odds when dipping into hyperthreads + return dev_threads == base_threads or not hyperthreads def select_workload(machine, tests, variance=0.25):