ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

CPU abstraction #1

Closed ThePhD closed 8 years ago

ThePhD commented 8 years ago

We need a way of finding out all relevant CPU information. This issue will be for what should theoretically be in there.

TheCatPlusPlus commented 8 years ago

Capabilities described by CPUID are much more interesting than almost all of that :v. Also NUMA topology is fairly important.

ThePhD commented 8 years ago

Thanks to @Mysticial we don't have to go through the pain of figuring out CPUID stuff: http://stackoverflow.com/a/7495023/5280922

ThePhD commented 8 years ago

After extensive research (and reading through some of Mysticials old conversations on the topic), Min/Max clockspeed (and even clockspeed itself) is a tad unreliable to get (even with the rdtsc intrinsic). That's something unfortunately you'd have to know on a per-CPU basis, and with knowledge of the hardware. CPU-Z isn't sharing, so we'll just leave that one alone.