Expand description
§CubeCL Common Library
This library contains common types used by other crates that must be shared.
Environment shims (sync primitives, futures, streams, config, persistence)
live in the cubecl-environment crate.
Modules§
- arena
- A circular, allocation-free arena for reusable memory blocks.
- benchmark
- Module for benchmark timings
- bytes
- Utilities module to manipulate bytes.
- device
- Device module.
- device_
handle - Device handle module.
- format
- Format utilities.
- pool
- A dynamically-growing pool that leases exclusive, reusable single-cell items. A dynamically-growing pool of single-cell items handed out as exclusive, non-cloneable handles.
- profile
- Module for profiling any executable part
- quant
- Quantization primitives required outside of
cubecl-quant
Macros§
- obfuscate
- Generate a type-erased, inline wrapper for a single value.
Structs§
- Comptime
Float - A finite float usable as a comptime kernel parameter.
- Invalid
Comptime Float - A float value that cannot be used as a
ComptimeFloatbecause it is infinite or NaN. - Ratio
- An exact ratio of two integers, reduced to lowest terms on construction.
- e2m3
- A 6-bit floating point type with 2 exponent bits and 3 mantissa bits.
- e3m2
- A 6-bit floating point type with 3 exponent bits and 2 mantissa bits.
- flex32
- A floating point type with relaxed precision, minimum
f16, maxf32. - tf32
- A 19-bit floating point type implementing the
tfloat32format.