Enum CacheConfig
- Namespace
- DotCompute.Abstractions.Types
- Assembly
- DotCompute.Abstractions.dll
Defines cache configuration preferences for CUDA kernels. Controls the allocation of on-chip memory between L1 cache and shared memory.
public enum CacheConfig
Fields
PreferEqual = 3Equal preference for L1 cache and shared memory. Balances on-chip memory allocation between both. Good default for kernels with moderate usage of both resources.
PreferL1 = 2Prefer L1 cache over shared memory. Allocates more on-chip memory to L1 cache. Best for kernels with good data locality but minimal shared memory needs.
PreferNone = 0No preference for cache configuration. Uses the default or previously set configuration.
Prefer shared memory over L1 cache. Allocates more on-chip memory to shared memory. Best for kernels with heavy shared memory usage.