Class HardwareConstants.Alignment
- Namespace
- DotCompute.Abstractions.Hardware
- Assembly
- DotCompute.Abstractions.dll
Memory alignment constants for GPU / SIMD operations.
public static class HardwareConstants.Alignment
- Inheritance
-
HardwareConstants.Alignment
- Inherited Members
Fields
Gpu
Minimum alignment for coalesced GPU access (CUDA, Metal).
public const int Gpu = 256
Field Value
LargePage
Large memory page size (2 MB).
public const int LargePage = 2097152
Field Value
Page
Standard memory page size (4 KB).
public const int Page = 4096
Field Value
SimdAvx2
AVX2 vector alignment (32 bytes).
public const int SimdAvx2 = 32
Field Value
SimdAvx512
AVX-512 vector alignment (64 bytes).
public const int SimdAvx512 = 64