Enum MemoryOptions
- Namespace
- DotCompute.Abstractions.Memory
- Assembly
- DotCompute.Abstractions.dll
Options for memory allocation and management.
[Flags]
public enum MemoryOptions
- Extension Methods
Fields
Aligned = 512Memory should be aligned to specific boundary.
AutoMigrate = 4096Memory should automatically migrate between devices as needed.
Cached = 32Memory should be cached.
Coherent = 64Memory access should be coherent across devices.
DeviceLocal = 16384Memory should be allocated local to the device for optimal access.
HighPriority = 128Memory should be allocated from high-priority pool.
HostVisible = 1024Memory should be visible to host.
InitializeToZero = 2048Memory should be initialized to zero on allocation.
Mapped = 2Memory should be mapped for device access.
None = 0No special options.
Pinned = 1Memory should be pinned in host memory.
Pooled = 8192Memory should be allocated from a memory pool for better performance.
Portable = 8Memory should be allocated as portable across devices.
Unified = 16Memory should use unified memory allocation.
UsePooling = 8192Memory should use pooling (alias for Pooled).
WriteCombined = 4Memory should be write-combined for better throughput.
ZeroInitialized = 256Memory should be zero-initialized.