First of all, congratulations on owning a 3990X!
os.cpu_count()
(or equivalently multiprocessing.cpu_count()
) is supposed to report the number of logical cores like you stated.
The issue you experienced seems to be a known bug in Python that appears fixed in Python 3.6 and above. Windows uses a 64-bit bitmask to keep track of CPU cores, so many applications can run into issues when run on systems with more than 64 logical cores.
I highly recommend to stop using Python 2.7 as it has reached its end-of-life on January 1st 2020. Python 2 will not be getting any new features or bugfixes, and this is likely one of them.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…