-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathlib.rs
More file actions
43 lines (33 loc) · 1.27 KB
/
lib.rs
File metadata and controls
43 lines (33 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#[macro_use]
extern crate derive_new;
extern crate alloc;
mod compute;
mod device;
mod runtime;
pub use device::*;
pub use runtime::*;
#[cfg(feature = "ptx-wmma")]
pub(crate) type WmmaCompiler = cubecl_cpp::cuda::mma::PtxWmmaCompiler;
#[cfg(not(feature = "ptx-wmma"))]
pub(crate) type WmmaCompiler = cubecl_cpp::cuda::mma::CudaWmmaCompiler;
#[cfg(test)]
#[allow(unexpected_cfgs)]
mod tests {
pub type TestRuntime = crate::CudaRuntime;
pub use half::{bf16, f16};
cubecl_core::testgen_all!(f32: [f16, bf16, f32, f64], i32: [i8, i16, i32, i64], u32: [u8, u16, u32, u64]);
cubecl_std::testgen!();
cubecl_matmul::testgen_matmul_plane_accelerated!();
cubecl_matmul::testgen_matmul_plane_vecmat!();
cubecl_matmul::testgen_matmul_unit!();
cubecl_matmul::testgen_matmul_tma!();
cubecl_quant::testgen_quant!();
// TODO: re-instate matmul quantized tests
cubecl_matmul::testgen_matmul_simple!([f16, bf16, f32]);
cubecl_std::testgen_tensor_identity!([f16, bf16, f32, u32]);
cubecl_convolution::testgen_conv2d_accelerated!([f16: f16, bf16: bf16, f32: tf32]);
cubecl_reduce::testgen_reduce!([f16, bf16, f32, f64]);
cubecl_random::testgen_random!();
cubecl_reduce::testgen_shared_sum!([f16, bf16, f32, f64]);
cubecl_scan::testgen_scan!();
}