Skip to content
New issue

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

how to get threads? #139

Open
gMan1990 opened this issue Apr 28, 2020 · 2 comments
Open

how to get threads? #139

gMan1990 opened this issue Apr 28, 2020 · 2 comments

Comments

@gMan1990
Copy link

like lscpu

CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
@workhorsy
Copy link
Owner

There isn't a way to do it yet. I'm trying to make py-cpuinfo work consistently on every OS. Unfortunately there does not seem to be a way to do it on a vanilla Windows install.

@gMan1990
Copy link
Author

gMan1990 commented Jan 13, 2021

> python3.7 -m cpuinfo
Python Version: 3.7.4.final.0 (64 bit)
Cpuinfo Version: 7.0.0
...
Count: 8
...

# MacBook ME293
> sysctl machdep.cpu.core_count
machdep.cpu.core_count: 4
> sysctl machdep.cpu.thread_count
machdep.cpu.thread_count: 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants