Expand description
Throughput related utilities.
Structs§
- Achieved
Throughput - One resource’s achieved rate during a measured run, against its modeled peak.
- Cmma
Dims - The M, N, and K dimensions of a matrix multiplication.
- Compute
Cmma Config - Configuration for a matrix multiplication (CMMA) operation.
- Kernel
Config - Configuration and payload for a benchmarkable compute kernel.
- Memory
Curve - Memory throughput measured across a range of working sets.
- Memory
Point - One measured point of a
MemoryCurve. - Resource
Bound - A resource’s roofline record: how much of it a run must move, against the peak rate that resource can sustain.
- Throughput
Benchmarker - A marker for measuring throughput of compute kernels.
- Throughput
Cache - Caches the
ThroughputValuefor a givenThroughputKey. - Throughput
Key - Represents a key/configuration used to identify the throughput of a computation.
- Throughput
Value - Represents the throughput of a computation, including the number of operations and the duration.
Enums§
- Memory
Access - Which directions of traffic a memory probe issues.
- Throughput
Mode - Represents the mode of a throughput computation.
Constants§
- DEFAULT_
BUFFER_ BYTES - Bytes per buffer of the single-size memory probes,
ThroughputMode::Memory,ThroughputMode::MemoryRead, andThroughputMode::MemoryWrite. Clamped to the device’s maximum allocation when the probe runs. - MIN_
WORKING_ SET - The smallest working set a curve is measured at, in bytes moved per pass.
Functions§
- binding_
achieved - The resource that actually governed the run’s duration:
binding_resource’s reduction applied to achieved scores instead of raw bounds. Every entry here shares oneduration, so ranking byfraction_of_peakgives the same order ranking the underlying bounds bytime_at_peakwould. - binding_
resource - The roofline convention this module uses throughout: a run cannot finish
faster than its slowest resource allows even under perfect overlap
between them, so that resource is the one binding the achievable
duration, whatever the others manage.
binding_achievedapplies the same reduction to a run’s actually measured rates. - compute_
throughput_ key - Constructs a compute
ThroughputKeybased on CMMA tile availability and types. - score_
resources - Scores an actual run against a set of
ResourceBounds, one resource at a time. - select_
cmma_ tile - Resolves the largest supported CMMA or MMA tile size
(m, n, k). - working_
set_ sweep - The working sets a curve is measured at: powers of two from
MIN_WORKING_SETup tocap, which is where the device runs out of allocation.
Type Aliases§
- Accumulator
Type - The element type of the accumulator.