Rihen Rihen NkentseuDocumentation

CPUTopology

struct

Information about the processor topology

Include
#include "NKPlatform/NkCPUFeatures.h"
Namespace
nkentseu::platform
Link (Jenga)
nkentseudependson(["NKPlatform"])
C++
struct CPUTopology

Hierarchy

Base classes : none. Derived classes : none.

Hierarchy : CPUTopologyCPUTopology

Members · 5

numPhysicalCoresNumber of real physical cores
numLogicalCoresNumber of logical cores (with HT/SMT enabled)
numSocketsNumber of CPU sockets in the system
hasHyperThreadingTells whether Hyper-Threading/SMT is enabled
CPUTopologyDefault constructor with minimal values

Member details

numPhysicalCores

#
field
int32_t numPhysicalCores

Number of real physical cores

numLogicalCores

#
field
int32_t numLogicalCores

Number of logical cores (with HT/SMT enabled)

numSockets

#
field
int32_t numSockets

Number of CPU sockets in the system

hasHyperThreading

#
field
bool hasHyperThreading

Tells whether Hyper-Threading/SMT is enabled

CPUTopology

#
constructor
CPUTopology()

Default constructor with minimal values