Class NumaInfo
- Namespace
- DotCompute.Backends.CPU.Threading
- Assembly
- DotCompute.Backends.CPU.dll
Provides information about NUMA (Non-Uniform Memory Access) topology. This is a thin facade over the modular NUMA components.
public static class NumaInfo
- Inheritance
-
NumaInfo
- Inherited Members
Properties
IsNumaSystem
Gets whether the system has NUMA support.
public static bool IsNumaSystem { get; }
Property Value
PlatformCapabilities
Gets platform capabilities for NUMA operations.
public static NumaPlatformCapabilities PlatformCapabilities { get; }
Property Value
Topology
Gets the NUMA topology of the system.
public static NumaTopology Topology { get; }
Property Value
Methods
CreateAffinityManager()
Creates a new NUMA affinity manager.
public static NumaAffinityManager CreateAffinityManager()
Returns
- NumaAffinityManager
NUMA affinity manager instance.
CreateMemoryManager()
Creates a new NUMA memory manager.
public static NumaMemoryManager CreateMemoryManager()
Returns
- NumaMemoryManager
NUMA memory manager instance.
GetNodeCpuMapping(int, out ulong, out int)
Gets CPU mapping information for a specific node.
public static bool GetNodeCpuMapping(int nodeId, out ulong cpuMask, out int cpuCount)
Parameters
nodeIdintNUMA node ID.
cpuMaskulongCPU mask for the node.
cpuCountintNumber of CPUs in the node.
Returns
- bool
True if mapping information was retrieved successfully.
GetNodeMemorySize(int)
Gets memory size information for a specific node.
public static long GetNodeMemorySize(int nodeId)
Parameters
nodeIdintNUMA node ID.
Returns
- long
Memory size in bytes, or 0 if unknown.
RediscoverTopology()
Forces a re-discovery of the NUMA topology.
public static NumaTopology RediscoverTopology()
Returns
- NumaTopology
Newly discovered topology.