cubecl_std/
lib.rs

1//! Cubecl standard library.
2
3extern crate alloc;
4
5mod reinterpret_slice;
6pub use reinterpret_slice::*;
7mod fast_math;
8pub use fast_math::*;
9
10mod quantization;
11pub use quantization::*;
12
13mod option;
14pub use option::*;
15
16pub mod tensor;
17
18use cubecl::prelude::*;
19use cubecl_core as cubecl;
20
21#[cfg(feature = "export_tests")]
22pub mod tests;
23
24#[cube]
25#[allow(clippy::manual_div_ceil)]
26pub fn div_ceil(a: u32, b: u32) -> u32 {
27    (a + b - 1) / b
28}