threadpool: use cpu_get_num_math to set the default number of threadpool threads

This way we avoid using E-Cores and Hyperthreaded siblings.
This commit is contained in:
Max Krasnyansky 2024-08-03 16:14:04 -07:00 committed by fmz
parent 3008b31b17
commit 96d6603dc7

View file

@ -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();
}
}