Table of Contents

Class DotComputeRuntimeOptions

Namespace
DotCompute.Runtime.Configuration
Assembly
DotCompute.Runtime.dll

Configuration options for DotCompute Runtime

public class DotComputeRuntimeOptions
Inheritance
DotComputeRuntimeOptions
Inherited Members

Fields

SectionName

The section name.

public const string SectionName = "DotCompute"

Field Value

string

Properties

AcceleratorLifetime

Gets or sets the service lifetime for accelerator instances

public ServiceLifetime AcceleratorLifetime { get; set; }

Property Value

ServiceLifetime

EnableAutoDiscovery

Gets or sets whether to enable automatic accelerator discovery

public bool EnableAutoDiscovery { get; set; }

Property Value

bool

EnableDebugLogging

Gets or sets whether to enable debug logging

public bool EnableDebugLogging { get; set; }

Property Value

bool

EnableGracefulDegradation

Gets or sets whether to enable graceful degradation when accelerators fail

public bool EnableGracefulDegradation { get; set; }

Property Value

bool

EnableKernelCaching

Gets or sets whether to enable kernel compilation caching

public bool EnableKernelCaching { get; set; }

Property Value

bool

EnableMemoryPooling

Gets or sets whether to enable memory pooling

public bool EnableMemoryPooling { get; set; }

Property Value

bool

EnableProfiling

Gets or sets whether to enable performance profiling

public bool EnableProfiling { get; set; }

Property Value

bool

InitialPoolSizeMB

Gets or sets the initial memory pool size in MB

[Range(1, 8192)]
public int InitialPoolSizeMB { get; set; }

Property Value

int

InitializationTimeoutSeconds

Gets or sets the runtime initialization timeout in seconds

[Range(1, 300)]
public int InitializationTimeoutSeconds { get; set; }

Property Value

int

KernelCacheDirectory

Gets or sets the kernel cache directory path

public string? KernelCacheDirectory { get; set; }

Property Value

string

MaxAccelerators

Gets or sets the maximum number of accelerators to discover

[Range(1, 64)]
public int MaxAccelerators { get; set; }

Property Value

int

MaxCacheSizeMB

Gets or sets the maximum cache size in MB

[Range(1, 10240)]
public int MaxCacheSizeMB { get; set; }

Property Value

int

PreferredAcceleratorType

Gets or sets the preferred accelerator type for default selection

public AcceleratorType PreferredAcceleratorType { get; set; }

Property Value

AcceleratorType

ProviderSettings

Gets or sets custom provider configuration

public Dictionary<string, object> ProviderSettings { get; init; }

Property Value

Dictionary<string, object>

ValidateCapabilities

Gets or sets whether to validate accelerator capabilities at startup

public bool ValidateCapabilities { get; set; }

Property Value

bool