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
L2CacheSize
Gets the L2 cache size.
public long L2CacheSize { get; }
Property Value
L3CacheSize
Gets the L3 cache size.
public long L3CacheSize { get; }
Property Value
Levels
Gets the cache levels.
public required IReadOnlyList<CacheLevel> Levels { get; init; }
Property Value
MaxCacheLevel
Gets the maximum cache level.
public int MaxCacheLevel { get; }
Property Value
TotalCacheSize
Gets the total cache size across all levels.
public long TotalCacheSize { get; }
Property Value
Methods
GetLevel(int)
Gets a specific cache level.
public CacheLevel? GetLevel(int level)
Parameters
levelintThe cache level to retrieve.
Returns
- CacheLevel
Cache level information or null if not found.