Skip to content

Commit

Permalink
threadpool: use cpu_get_num_math to set the default number of threadp…
Browse files Browse the repository at this point in the history
…ool threads

This way we avoid using E-Cores and Hyperthreaded siblings.
  • Loading branch information
max-krasnyansky authored and fmz committed Aug 7, 2024
1 parent e7edb4f commit b32512a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,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();
}
}

Expand Down

0 comments on commit b32512a

Please sign in to comment.