Expand description
§CubeCL Common Library
This library contains common types used by other crates that must be shared.
Modules§
- benchmark
- Module for benchmark timings
- future
- Future utils with a compatible API for native, non-std and wasm environments.
- profile
- Module for profiling any executable part
- rand
- Rand module contains types for random number generation for non-std environments and for std environments.
- reader
- Useful when you need to read async data without having to decorate each function with async notation.
- stream_
id - Stream id related utilities.
- stub
- Stub module contains types for stubs for non-std environments and for std environments.
Structs§
- CubeDim
- e2m1
- A 4-bit floating point type with 2 exponent bits and 1 mantissa bit.
- e2m3
- A 6-bit floating point type with 2 exponent bits and 3 mantissa bits.
- e2m1x2
- A 4-bit floating point type with 2 exponent bits and 1 mantissa bit. Packed with two elements per value, to allow for conversion to/from bytes. Care must be taken to ensure the shape is adjusted appropriately.
- e3m2
- A 6-bit floating point type with 3 exponent bits and 2 mantissa bits.
- e4m3
- A 8-bit floating point type with 4 exponent bits and 3 mantissa bits.
- e5m2
- A 8-bit floating point type with 5 exponent bits and 2 mantissa bits.
- flex32
- A floating point type with relaxed precision, minimum
f16
, max [f32
]. - tf32
- A 19-bit floating point type implementing the
tfloat32
format. - ue8m0
- An 8-bit unsigned floating point type with 8 exponent bits and no mantissa bits. Used for scaling factors.
Enums§
- Execution
Mode - The kind of execution to be performed.
Constants§
- PLANE_
DIM_ APPROX - An approximation of the plane dimension.