Skip to main content

Crate laddu_runtime

Crate laddu_runtime 

Source
Expand description

Execution backends, dataset queries, and reduction support for compiled laddu models.

Structs§

BinSpec
Validated, monotonically increasing bin edges.
BinningAxis
A finite, strictly increasing one-dimensional bin axis.
CpuBackend
Prepares compiled models for CPU execution.
CpuBatchCache
Materialized event-dependent values for one batch.
CpuCachedBatch
A cached event batch and its associated weights.
CpuCachedDataset
A dataset whose event-dependent model values are fully cached in memory.
CpuOptions
CPU-specific execution options.
CpuPlan
A compiled model prepared for CPU evaluation.
DatasetBin
A lazily filtered dataset corresponding to one bin.
DeviceIdentity
Stable information used to match a runtime accelerator to platform telemetry.
Execution
Resolved resources and policies used to execute models.
ExecutionOptions
Options used to construct an Execution context.
GpuOptions
GPU-specific execution options.
JointHistogram
An N-dimensional empirical weighted histogram stored in row-major order.
JointHistogramDiagnostics
Aggregate diagnostics for events that could not be placed in a joint histogram.
MemoryDecision
One memory-derived execution decision.
MemoryLease
A live memory reservation. Clones share one reservation.
MemoryPlan
Host and optional accelerator budgets for one execution.
MemoryPool
A resolved, reservable limit within one physical resource.
MemoryPoolReport
Report for one resolved pool.
MemoryReport
Report covering all resources in a crate::MemoryState.
MemoryResource
Snapshot of one physical memory resource.
MemoryState
Live resource discovery and process-wide laddu reservation state.
PreparedDatasetStats
Fixed statistics collected when a dataset is prepared for repeated evaluation.
PreparedNormalization
Prepared sufficient statistics and their parameter-only contraction.
PreparedNormalizationDiagnostics
Runtime diagnostics for one compiler-native accepted normalization.
PreparedQuery
Scalar expressions compiled and prepared once for repeated batch evaluation. This object retains no event data and owns no cross-request compilation cache.
ProcessMemoryReport
Sampled operating-system memory counters for the current process.
ReductionEvaluation
The scalar value and free-parameter gradient produced by a reduction.
ValueGradient
A complex model value and its derivatives with respect to free parameters.

Enums§

CapacitySource
The basis used to obtain a resource’s capacity information.
Comparison
Comparison operation used by a dataset predicate.
CpuExecutionMode
CPU scalar-kernel execution strategy.
CpuPreparedDataset
A dataset prepared according to its CacheStorage policy.
Device
Device on which a model should execute.
ExecutionError
Error produced while resolving execution options.
FinalUpperEdge
Policy for a value exactly equal to an axis’s final upper edge.
GpuBackend
GPU implementation to use.
GpuDeviceSelector
Rule used to select a GPU device.
IntervalClosure
Determines which endpoints are included by an interval predicate.
JitPolicy
Policy controlling CPU just-in-time compilation.
MemoryBudget
A requested memory limit.
MemoryError
Errors produced while discovering or reserving memory.
MemoryResourceKind
Kind of physical memory resource.
NormalizationMode
Policy controlling compiler-native accepted normalization.
Precision
Numeric precision used to execute a model.
Predicate
Boolean expression used to select events from a dataset.
PreparedDataset
A dataset prepared for a concrete execution backend.
PreparedModel
A compiled model prepared for a concrete execution backend.
RuntimeError
Error produced while preparing or evaluating a model.
ThreadPolicy
Policy controlling CPU worker-thread use.

Traits§

DatasetExprExt
Expression-based query operations for datasets.
EventLookup
Supplies event-dependent scalar values for direct CPU evaluation.

Functions§

bin_shape
Return the row-major shape for ordered axes.
checked_bin_count
Return the flattened bin count, or None when the ordered shape overflows usize.
flat_bin_index
Assign ordered coordinates to a row-major flattened bin.
flat_bin_index_for_event
Assign one event from axis-major coordinate columns to a flattened bin.

Type Aliases§

RuntimeResult
Result type returned by runtime operations.