Table of Contents

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

int

MaxThreadsPerBlock

Gets or sets the maximum threads per block. Determined by resource constraints and kernel requirements.

public int MaxThreadsPerBlock { get; init; }

Property Value

int

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

float

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

int

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; }

Property Value

int