Namespace DotCompute.Abstractions.Hardware
Classes
- HardwareConstants
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.
- HardwareConstants.Alignment
Memory alignment constants for GPU / SIMD operations.
- HardwareConstants.CacheLine
Cache-line-size constants. Bytes covers modern Zen4 and NVIDIA Hopper L2 (128 B). Legacy64 is the 64 B value that most x86 parts (Intel/AMD pre-Zen4) and older CPUs use; migrated callers that assumed 64 B should reference Legacy64 explicitly.
- HardwareConstants.CpuCache
Typical CPU cache sizes used for tiling heuristics. These are rough defaults; when available, runtime-queried cache sizes should be preferred.
- HardwareConstants.Cuda
CUDA thread / block / warp limits that are fixed by the CUDA architecture (not per-device). Per-device values (SM count, L2 capacity, etc.) belong on AcceleratorInfo.
- HardwareConstants.MemoryPool
Memory-pool size class boundaries for power-of-two pool allocators.