Closed Jean-Serge closed 7 years ago
I don't agree with this PR - actually, you get the number of CPUs (physical cores) of the machine, not the number of threads (global / per core) of this one.
Based on the documentation of the num_cpus
crate, the number of threads to use for Snatch is num_cpus::get() * num_cpus::get_physical()
.
Yes and no. Even if we were talking about core numbers instead of CPUs we should consider to launch a thread for each CPUs because that is the way our OS is seeing it.
Sure, otherwise I think we should get the number of physical
CPUs by default, instead of logical
CPUs, as considering this issue.
Thanks for the link I didn't understand this.
Resolution proposition for #5