pub trait AccelDtype:
Copy
+ Send
+ Sync
+ 'static
+ Debug {
type Scalar: Copy + Send + Sync + 'static + Debug;
const KIND: DType;
const SIZE: usize;
const NAME: &'static str;
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn nan() -> Option<Self>;
}Expand description
Marker for any numeric type that can be a typed device buffer element across atomr-accel backends.
AccelDtype is intentionally narrower than what individual
backends can support. cuBLAS f64 GEMM is gated by a GemmSupported
marker on the CUDA side; this trait says only that the type is a
recognised dtype.
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.