Table of Contents

Enum MemoryType

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

Specifies the type of memory allocation.

public enum MemoryType

Fields

Constant = 5

Constant memory for read-only data.

Device = 1

Device memory (e.g., GPU VRAM).

Host = 0

Host system memory (RAM).

Managed = 7

Managed memory with automatic migration.

Pinned = 3

Pinned host memory for faster transfers.

Shared = 4

Shared memory within a compute unit.

Texture = 6

Texture memory optimized for spatial locality.

Unified = 2

Unified memory accessible from both host and device.