Table of Contents

Class KernelCacheConfig

Namespace
DotCompute.Backends.CUDA.Compilation
Assembly
DotCompute.Backends.CUDA.dll

Configuration for kernel compilation cache.

public sealed class KernelCacheConfig
Inheritance
KernelCacheConfig
Inherited Members

Properties

CacheDirectory

Gets or sets the cache directory path.

public string? CacheDirectory { get; set; }

Property Value

string

CacheExpiryHours

Gets or sets the cache expiry time in hours.

public int CacheExpiryHours { get; set; }

Property Value

int

DiskCachePath

Gets or sets the disk cache path for compiled kernels. If null, uses the default system temp directory.

public string? DiskCachePath { get; set; }

Property Value

string

EnableDiskCache

Gets or sets whether disk caching is enabled.

public bool EnableDiskCache { get; set; }

Property Value

bool

MaxCachedKernels

Gets or sets the maximum number of cached kernels.

public int MaxCachedKernels { get; set; }

Property Value

int

MaxDiskCacheSizeMB

Gets or sets the maximum disk cache size in megabytes.

public int MaxDiskCacheSizeMB { get; set; }

Property Value

int

MaxMemoryCacheSizeMB

Gets or sets the maximum memory cache size in megabytes.

public int MaxMemoryCacheSizeMB { get; set; }

Property Value

int