Table of Contents

Class MetalOptimizationParameters

Namespace
DotCompute.Backends.Metal.Execution.Graph.Types
Assembly
DotCompute.Backends.Metal.dll

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

bool

EnableCommandBufferBatching

Gets or sets a value indicating whether command buffer batching is enabled.

public bool EnableCommandBufferBatching { get; set; }

Property Value

bool

EnableKernelFusion

Gets or sets a value indicating whether kernel fusion is enabled.

public bool EnableKernelFusion { get; set; }

Property Value

bool

EnableMemoryCoalescing

Gets or sets a value indicating whether memory coalescing is enabled.

public bool EnableMemoryCoalescing { get; set; }

Property Value

bool

EnableParallelExecution

Gets or sets a value indicating whether parallel execution is enabled.

public bool EnableParallelExecution { get; set; }

Property Value

bool

MaxCommandBufferSize

Gets or sets the maximum command buffer size in operations.

public int MaxCommandBufferSize { get; set; }

Property Value

int

MaxFusionDepth

Gets or sets the maximum number of nodes to fuse together.

public int MaxFusionDepth { get; set; }

Property Value

int

MemoryStrategy

Gets or sets the memory allocation strategy.

public MetalMemoryStrategy MemoryStrategy { get; set; }

Property Value

MetalMemoryStrategy

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.