Open jonathanstrong opened 5 years ago
Huh, I just checked the MSDN docs about GetSystemInfo
and dwNumberOfProcessors
, and noticed this:
The number of logical processors in the current group.
It seems the group can only have up to 64 (and thus you're seeing 48)? Since you seem to have access to a windows box with a lot of cores, would you be able to help with the fix?
I'd love to help out, unfortunately:
However - next time I am working on one of these instances I'll try to poke around, if it's still relevant. Thanks!
I have implemented this feature. I will send a PR soon.
on an aws windows instance,
num_cpus::get()
returned 48 for a machine with 96 logical cores. I expected the result would be 96, not 48, the number of physical cores.num_cpus v1.10.1 rustc: 1.38.0-nightly 2019-07-18
CPU readout from windows task manager:
Thanks for your hard work on the library!
(edit: adds num_cpus version)