From 96d6603dc70a93dc5bd5bf26812f77f748600e3a Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Sat, 3 Aug 2024 16:14:04 -0700 Subject: [PATCH] threadpool: use cpu_get_num_math to set the default number of threadpool threads This way we avoid using E-Cores and Hyperthreaded siblings. --- common/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common.cpp b/common/common.cpp index 6c927fc17..796044de9 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -285,7 +285,7 @@ void postprocess_cpu_params(cpu_params& cpuparams, const cpu_params* role_model) if (role_model != nullptr) { cpuparams = *role_model; } else { - cpuparams.n_threads = std::thread::hardware_concurrency(); + cpuparams.n_threads = cpu_get_num_math(); } }