Table of Contents

Class CacheLevel

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

Information about a specific cache level.

public sealed class CacheLevel
Inheritance
CacheLevel
Inherited Members

Properties

Associativity

Gets the associativity of the cache.

public int Associativity { get; init; }

Property Value

int

EfficiencyScore

Gets the cache efficiency score (0.0 to 1.0).

public double EfficiencyScore { get; }

Property Value

double

IsShared

Gets whether this is a shared cache across multiple cores.

public bool IsShared { get; init; }

Property Value

bool

LatencyCycles

Gets the cache latency in cycles (if available).

public int LatencyCycles { get; init; }

Property Value

int

Level

Gets the cache level (1, 2, 3, etc.).

public required int Level { get; init; }

Property Value

int

LineSize

Gets the cache line size in bytes.

public required int LineSize { get; init; }

Property Value

int

SizeInBytes

Gets the cache size in bytes.

public required long SizeInBytes { get; init; }

Property Value

long

Type

Gets the cache type (Data, Instruction, Unified).

public required string Type { get; init; }

Property Value

string