Table of Contents

Enum MemoryOptions

Namespace
DotCompute.Abstractions.Memory
Assembly
DotCompute.Abstractions.dll

Options for memory allocation and management.

[Flags]
public enum MemoryOptions
Extension Methods

Fields

Aligned = 512

Memory should be aligned to specific boundary.

AutoMigrate = 4096

Memory should automatically migrate between devices as needed.

Cached = 32

Memory should be cached.

Coherent = 64

Memory access should be coherent across devices.

DeviceLocal = 16384

Memory should be allocated local to the device for optimal access.

HighPriority = 128

Memory should be allocated from high-priority pool.

HostVisible = 1024

Memory should be visible to host.

InitializeToZero = 2048

Memory should be initialized to zero on allocation.

Mapped = 2

Memory should be mapped for device access.

None = 0

No special options.

Pinned = 1

Memory should be pinned in host memory.

Pooled = 8192

Memory should be allocated from a memory pool for better performance.

Portable = 8

Memory should be allocated as portable across devices.

Unified = 16

Memory should use unified memory allocation.

UsePooling = 8192

Memory should use pooling (alias for Pooled).

WriteCombined = 4

Memory should be write-combined for better throughput.

ZeroInitialized = 256

Memory should be zero-initialized.