Class MemoryPoolingPolicy
- Namespace
- DotCompute.Backends.CUDA.Memory.Models
- Assembly
- DotCompute.Backends.CUDA.dll
Memory pooling policy configuration.
public sealed class MemoryPoolingPolicy
- Inheritance
-
MemoryPoolingPolicy
- Inherited Members
Properties
EnablePooling
Gets a value indicating whether memory pooling is enabled.
public bool EnablePooling { get; init; }
Property Value
MaxIdleTime
Gets the maximum idle time a buffer can remain pooled before being freed.
public TimeSpan MaxIdleTime { get; init; }
Property Value
MaxItemSize
Gets the maximum size in bytes of an individual pooled buffer.
public long MaxItemSize { get; init; }
Property Value
MaxPoolSize
Gets the maximum number of pooled buffers retained.
public int MaxPoolSize { get; init; }