We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am getting the wrong value here:
>>> import cpuinfo >>> cpuinfo.get_cpu_info()["count"] 64
The correct value is 80 and can be obtained with PowerShell:
Get-WmiObject -class Win32_Processor | Select-Object -ExpandProperty NumberOfLogicalProcessors | Measure-Object -Sum | Select -Expand Sum 80
The specs of the machine are:
PS C:\Users\DelfinoG> Get-WmiObject -class Win32_Processor | Select-Object Caption,DeviceID,Manufacturer,Name,NumberOfCo res,NumberOfLogicalProcessors Caption : Intel64 Family 6 Model 85 Stepping 4 DeviceID : CPU0 Manufacturer : GenuineIntel Name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz NumberOfCores : 20 NumberOfLogicalProcessors : 40 Caption : Intel64 Family 6 Model 85 Stepping 4 DeviceID : CPU1 Manufacturer : GenuineIntel Name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz NumberOfCores : 20 NumberOfLogicalProcessors : 40
Any workaround to get that 80 from Python directly?
The text was updated successfully, but these errors were encountered:
Right now I am using multiprocessing to get the cpu count:
import multiprocessing print(multiprocessing.cpu_count())
I'll have to look at other ways to do it more accurately: https://stackoverflow.com/questions/1006289/how-to-find-out-the-number-of-cpus-using-python/
It would also be nice to have the number of physical or virtual cores: #7
Sorry, something went wrong.
This bug has more information on the problem: https://bugs.python.org/issue30581
Hello,I had the same problem on windows, but not on linux, @gdelfino have you solved this problem?
No branches or pull requests
I am getting the wrong value here:
The correct value is 80 and can be obtained with PowerShell:
The specs of the machine are:
Any workaround to get that 80 from Python directly?
The text was updated successfully, but these errors were encountered: