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
Properties
AcceleratorLifetime
Gets or sets the service lifetime for accelerator instances
public ServiceLifetime AcceleratorLifetime { get; set; }
Property Value
EnableAutoDiscovery
Gets or sets whether to enable automatic accelerator discovery
public bool EnableAutoDiscovery { get; set; }
Property Value
EnableDebugLogging
Gets or sets whether to enable debug logging
public bool EnableDebugLogging { get; set; }
Property Value
EnableGracefulDegradation
Gets or sets whether to enable graceful degradation when accelerators fail
public bool EnableGracefulDegradation { get; set; }
Property Value
EnableKernelCaching
Gets or sets whether to enable kernel compilation caching
public bool EnableKernelCaching { get; set; }
Property Value
EnableMemoryPooling
Gets or sets whether to enable memory pooling
public bool EnableMemoryPooling { get; set; }
Property Value
EnableProfiling
Gets or sets whether to enable performance profiling
public bool EnableProfiling { get; set; }
Property Value
InitialPoolSizeMB
Gets or sets the initial memory pool size in MB
[Range(1, 8192)]
public int InitialPoolSizeMB { get; set; }
Property Value
InitializationTimeoutSeconds
Gets or sets the runtime initialization timeout in seconds
[Range(1, 300)]
public int InitializationTimeoutSeconds { get; set; }
Property Value
KernelCacheDirectory
Gets or sets the kernel cache directory path
public string? KernelCacheDirectory { get; set; }
Property Value
MaxAccelerators
Gets or sets the maximum number of accelerators to discover
[Range(1, 64)]
public int MaxAccelerators { get; set; }
Property Value
MaxCacheSizeMB
Gets or sets the maximum cache size in MB
[Range(1, 10240)]
public int MaxCacheSizeMB { get; set; }
Property Value
PreferredAcceleratorType
Gets or sets the preferred accelerator type for default selection
public AcceleratorType PreferredAcceleratorType { get; set; }
Property Value
ProviderSettings
Gets or sets custom provider configuration
public Dictionary<string, object> ProviderSettings { get; init; }
Property Value
ValidateCapabilities
Gets or sets whether to validate accelerator capabilities at startup
public bool ValidateCapabilities { get; set; }