Skip to content

This is a wsl2. Why the num_cores=6 while my cpu =12? #911

Closed Locked Answered by gujuriu
tic-top asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tic-top, the CPU from your picture has 6 cores (real ones) and two threads per core because of Intel® Hyper-Threading Technology / HT / SMT, you've called a function name num_cores() and that function returned the right amount of CPU cores.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tic-top
Comment options

Answer selected by tic-top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants