Enum MetalMemoryStrategy
- Namespace
- DotCompute.Backends.Metal.Execution
- Assembly
- DotCompute.Backends.Metal.dll
Defines memory allocation strategies for Metal resources
public enum MetalMemoryStrategy
Fields
Aggressive = 7Aggressive memory allocation strategy
Balanced = 6Balanced memory allocation strategy
Default = 0Default Metal memory allocation
DiscreteGpu = 2Optimized for discrete GPU memory
ManagedMemory = 5Managed memory with automatic synchronization
PrivateMemory = 4Private GPU memory only
Use shared memory when possible
UnifiedMemory = 1Optimized for Apple Silicon unified memory