Table of Contents

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

bool

PlatformCapabilities

Gets platform capabilities for NUMA operations.

public static NumaPlatformCapabilities PlatformCapabilities { get; }

Property Value

NumaPlatformCapabilities

Topology

Gets the NUMA topology of the system.

public static NumaTopology Topology { get; }

Property Value

NumaTopology

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

nodeId int

NUMA node ID.

cpuMask ulong

CPU mask for the node.

cpuCount int

Number 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

nodeId int

NUMA 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.