Class MetalOptimizationParameters
Represents optimization parameters for Metal graph execution.
public class MetalOptimizationParameters
- Inheritance
-
MetalOptimizationParameters
- Inherited Members
Properties
EnableAppleSiliconOptimizations
Gets or sets Apple Silicon specific optimizations.
public bool EnableAppleSiliconOptimizations { get; set; }
Property Value
EnableCommandBufferBatching
Gets or sets a value indicating whether command buffer batching is enabled.
public bool EnableCommandBufferBatching { get; set; }
Property Value
EnableKernelFusion
Gets or sets a value indicating whether kernel fusion is enabled.
public bool EnableKernelFusion { get; set; }
Property Value
EnableMemoryCoalescing
Gets or sets a value indicating whether memory coalescing is enabled.
public bool EnableMemoryCoalescing { get; set; }
Property Value
EnableParallelExecution
Gets or sets a value indicating whether parallel execution is enabled.
public bool EnableParallelExecution { get; set; }
Property Value
MaxCommandBufferSize
Gets or sets the maximum command buffer size in operations.
public int MaxCommandBufferSize { get; set; }
Property Value
MaxFusionDepth
Gets or sets the maximum number of nodes to fuse together.
public int MaxFusionDepth { get; set; }
Property Value
MemoryStrategy
Gets or sets the memory allocation strategy.
public MetalMemoryStrategy MemoryStrategy { get; set; }
Property Value
Methods
Validate()
Validates the optimization parameters and returns a list of validation errors.
public IReadOnlyList<string> Validate()
Returns
- IReadOnlyList<string>
A list of validation errors, empty if parameters are valid.