Structs§
- Base
Input Spec - Cubek
Config - Top-level configuration loaded from
cubek.toml. - Host
Data - Print
Section - Progress
- Counter shared between a reference algorithm (which bumps it) and a caller (which polls it for streaming progression).
- Quantization
Info - Information about a quantized tensor in tests. This allows marking a tensor as quantized for the kernel dispatcher while keeping the original unquantized data on the host for reference.
- Random
Input Spec - Test
Input - Test
Input Builder - Fluent builder for
TestInput. - Test
Section - Test
Tensor - A test tensor which might be marked as quantized.
Enums§
- Data
Kind - DimFilter
- Distribution
- Execution
Outcome - Whether a kernel was executed (without regard to correctness) or failed to compile.
- Host
Data Type - Host
Data Vec - Input
Data Type - Print
View - Stride
Spec - Test
Decision - The final policy-based verdict of a test, after applying the test mode. Determines whether the test should be considered passing or failing.
- Test
Outcome - The overall outcome of a test, combining execution and validation. Either the kernel was validated or failed to compile.
- Test
Policy - Validation
Result - The result of correctness validation for a kernel execution.
Functions§
- assert_
equals_ approx - Check if two tensors are approximately equal
- assert_
equals_ approx_ in_ slice - Check if two tensors are approximately equal within the given filter.
- compare_
host_ data_ files - Compare two
HostDatablobs previously written to disk bycrate::write_host_data. - config
- Returns the active config. Cached on first call.
- decide
- Decide whether a test outcome passes or fails under the active policy.
- flush_
compile_ error - Flush
clientand surface any pending compile/launch failure as aExecutionOutcome::CompileError. - launch_
and_ capture_ outcome - Run
launchagainstclient, returning itsExecutionOutcomeafter flushing for any compile/launch errors that surface only asynchronously. - parse_
tensor_ filter - physical_
extent - Number of elements in the physical buffer required to cover every logical
index in
shapeunderstrides, assuming element 0 is at offset 0. - pretty_
print_ zip - print_
tensor - Backwards-compatible single-tensor helper. Delegates to
print_tensors. - print_
tensors - Pretty-print one or two tensors through the unified renderer.
- read_
host_ data - Read a
HostDatapreviously produced bywrite_host_data. - write_
host_ data - Write
datatopathin the binary format documented at the module level.