Table of Contents

Class KernelExecutionOptions

Namespace
DotCompute.Abstractions.Kernels
Assembly
DotCompute.Abstractions.dll

Options for kernel execution.

public class KernelExecutionOptions
Inheritance
KernelExecutionOptions
Inherited Members

Properties

BlockDimensions

Gets or sets the block dimensions for kernel execution.

public (int X, int Y, int Z) BlockDimensions { get; set; }

Property Value

(int x, int y, int z)

CustomOptions

Gets or sets additional backend-specific options.

public Dictionary<string, object> CustomOptions { get; }

Property Value

Dictionary<string, object>

EnableProfiling

Gets or sets whether to enable profiling for this execution.

public bool EnableProfiling { get; set; }

Property Value

bool

GridDimensions

Gets or sets the grid dimensions for kernel execution.

public (int X, int Y, int Z) GridDimensions { get; set; }

Property Value

(int x, int y, int z)

SharedMemoryBytes

Gets or sets the shared memory size in bytes.

public int SharedMemoryBytes { get; set; }

Property Value

int

Stream

Gets or sets the stream to execute on (null for default stream).

public object? Stream { get; set; }

Property Value

object