hwloc
hwloc copied to clipboard
detect offline CPUs on Windows
msconfig on Windows lets you disable some cores (go to "Boot" tab, "Advanced options", "Number of processors"). See that's what "Active" means in dwActiveProcessorMask vs dwNumberOfProcessors in struct _SYSTEM_INFO, and in GetActiveProcessorCount().