Class HardwareConstants
- Namespace
- DotCompute.Abstractions.Hardware
- Assembly
- DotCompute.Abstractions.dll
Hardware-physical constants used across backends. Single source of truth for values that are dictated by physical hardware (cache geometry, GPU alignment requirements, warp/block limits, etc.) rather than by application policy.
public static class HardwareConstants
- Inheritance
-
HardwareConstants
- Inherited Members
Remarks
Values in this class MUST NOT vary across builds. If a value is tunable at runtime or differs between devices (e.g. per-SKU VRAM size, per-device warp count), it belongs in a device-info type, not here. Keep this class small and frozen — add new entries only when the same literal appears in three or more places.