Skip to content

Commit a95e1a2

Browse files
max-krasnyanskyfmz
authored and
fmz
committed
threadpool: use cpu_get_num_math to set the default number of threadpool threads
This way we avoid using E-Cores and Hyperthreaded siblings.
1 parent c05312d commit a95e1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void postprocess_cpu_params(cpu_params& cpuparams, const cpu_params* role_model)
230230
if (role_model != nullptr) {
231231
cpuparams = *role_model;
232232
} else {
233-
cpuparams.n_threads = std::thread::hardware_concurrency();
233+
cpuparams.n_threads = cpu_get_num_math();
234234
}
235235
}
236236

0 commit comments

Comments
 (0)