Table of Contents

Class CacheHierarchy

Namespace
DotCompute.Backends.CPU.Threading.NUMA
Assembly
DotCompute.Backends.CPU.dll

Information about cache hierarchy on a NUMA node.

public sealed class CacheHierarchy
Inheritance
CacheHierarchy
Inherited Members

Properties

L1CacheSize

Gets the L1 cache size.

public long L1CacheSize { get; }

Property Value

long

L2CacheSize

Gets the L2 cache size.

public long L2CacheSize { get; }

Property Value

long

L3CacheSize

Gets the L3 cache size.

public long L3CacheSize { get; }

Property Value

long

Levels

Gets the cache levels.

public required IReadOnlyList<CacheLevel> Levels { get; init; }

Property Value

IReadOnlyList<CacheLevel>

MaxCacheLevel

Gets the maximum cache level.

public int MaxCacheLevel { get; }

Property Value

int

TotalCacheSize

Gets the total cache size across all levels.

public long TotalCacheSize { get; }

Property Value

long

Methods

GetLevel(int)

Gets a specific cache level.

public CacheLevel? GetLevel(int level)

Parameters

level int

The cache level to retrieve.

Returns

CacheLevel

Cache level information or null if not found.