Class ResourceUsageEstimate
- Namespace
- DotCompute.Abstractions.Validation
- Assembly
- DotCompute.Abstractions.dll
Represents resource usage estimates for a compiled kernel. Provides insights into memory, register usage, and performance characteristics to help optimize kernel execution and occupancy.
public sealed class ResourceUsageEstimate
- Inheritance
-
ResourceUsageEstimate
- Inherited Members
Properties
ConstantMemoryUsage
Gets or sets the constant memory usage in bytes. Constant memory is cached and provides fast access for read-only data.
public int ConstantMemoryUsage { get; init; }
Property Value
MaxThreadsPerBlock
Gets or sets the maximum threads per block. Determined by resource constraints and kernel requirements.
public int MaxThreadsPerBlock { get; init; }
Property Value
OccupancyEstimate
Gets or sets the occupancy estimate (0-1). Represents the ratio of active warps to maximum possible warps. Higher occupancy generally leads to better resource utilization.
public float OccupancyEstimate { get; init; }
Property Value
RegistersPerThread
Gets or sets the register count per thread. Higher register usage may reduce the number of concurrent threads.
public int RegistersPerThread { get; init; }
Property Value
SharedMemoryPerBlock
Gets or sets the shared memory per block in bytes. Shared memory is limited per streaming multiprocessor and affects occupancy.
public int SharedMemoryPerBlock { get; init; }