Development version, not published. Built from main: it shows what is coming (fixes, descriptions written since the last tag) and can change with every commit. Go to the stable version 0.1.0-beta.11
CPUTopology
struct
Information about the processor topology
Include
#include "NKPlatform/NkCPUFeatures.h"Namespace
nkentseu::platformLink (Jenga)
nkentseudependson(["NKPlatform"])C++
struct CPUTopologyHierarchy
Base classes : none. Derived classes : none.
Members · 5
numPhysicalCores | Number of real physical cores |
numLogicalCores | Number of logical cores (with HT/SMT enabled) |
numSockets | Number of CPU sockets in the system |
hasHyperThreading | Tells whether Hyper-Threading/SMT is enabled |
CPUTopology | Default constructor with minimal values |
Member details
int32_t numPhysicalCores
Number of real physical cores
Source : NkCPUFeatures.h, line 125
int32_t numLogicalCores
Number of logical cores (with HT/SMT enabled)
Source : NkCPUFeatures.h, line 130
int32_t numSockets
Number of CPU sockets in the system
Source : NkCPUFeatures.h, line 135
bool hasHyperThreading
Tells whether Hyper-Threading/SMT is enabled
Source : NkCPUFeatures.h, line 140
CPUTopology()
Default constructor with minimal values
Source : NkCPUFeatures.h, line 145