Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
1697 Discussions

How to find the total physical cores on my windows servers (2000 and up)

saththiya
Beginner
1,337 Views
For SW licensing purposes, I need to extract the total number of PHYSICAL cores in each windows server (2000 and up). The intent is NOT to use any 3rd party tools (except Intel provided one :-) ). Preferred is to run a script and find it.

How can we find it? We can find the number of threads in wondows, but that is misleading. If HT (hyper threading is enabled), the total threads is NOT equal to physical cores.
0 Kudos
2 Replies
gaston-hillar
Valued Contributor I
1,337 Views
Quoting - saththiya
For SW licensing purposes, I need to extract the total number of PHYSICAL cores in each windows server (2000 and up). The intent is NOT to use any 3rd party tools (except Intel provided one :-) ). Preferred is to run a script and find it.

How can we find it? We can find the number of threads in wondows, but that is misleading. If HT (hyper threading is enabled), the total threads is NOT equal to physical cores.

Hi saththiya,

You can find a lot of information about this topic in this thread: http://software.intel.com/en-us/forums/showthread.php?t=62233

Besides, This post http://software.intel.com/en-us/articles/hyper-threading-technology-multi-core-and-mobile-intel-pentium-processor-m-toolbox/

can also help you. It uses C++ and a library to detect logical and physical cores.

I think you have a lot of options to work with!

Cheers,

Gastn
0 Kudos
gaston-hillar
Valued Contributor I
1,337 Views
Quoting - saththiya
For SW licensing purposes, I need to extract the total number of PHYSICAL cores in each windows server (2000 and up). The intent is NOT to use any 3rd party tools (except Intel provided one :-) ). Preferred is to run a script and find it.

How can we find it? We can find the number of threads in wondows, but that is misleading. If HT (hyper threading is enabled), the total threads is NOT equal to physical cores.

I forgot to mention. A few months ago, Ihad added a post about counting logical cores, not physical ones. If you need to coung logical cores, you can use the information in this post. However, do not use it if you want to count physical cores: http://software.intel.com/en-us/blogs/2009/05/04/counting-cores-in-net-and-java/
0 Kudos
Reply