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