pub enum CutlassDtype {
F32,
F64,
F16,
Bf16,
F8E4m3,
F8E5m2,
F4E2m1,
I8,
I32,
U8,
}Expand description
CUTLASS-side dtype tag. Each variant maps 1-to-1 onto a concrete
CUTLASS C++ scalar type via CutlassDtype::as_cutlass_type.
Variants§
F32
float / cutlass::float32_t.
F64
double / cutlass::float64_t.
F16
cutlass::half_t.
Bf16
cutlass::bfloat16_t.
F8E4m3
cutlass::float_e4m3_t (Hopper / Blackwell fp8).
F8E5m2
cutlass::float_e5m2_t (Hopper / Blackwell fp8).
F4E2m1
cutlass::float_e2m1_t (Blackwell fp4).
I8
int8_t (CUTLASS quantized GEMM lane).
I32
int32_t (accumulator).
U8
uint8_t.
Implementations§
Source§impl CutlassDtype
impl CutlassDtype
Sourcepub fn as_cutlass_type(self) -> &'static str
pub fn as_cutlass_type(self) -> &'static str
CUTLASS C++ type spelling for use inside a generated template
instantiation. Used by the .cu source emitter.
Sourcepub fn short_name(self) -> &'static str
pub fn short_name(self) -> &'static str
Stable short name used in plan-cache keys and log output.
Trait Implementations§
Source§impl Clone for CutlassDtype
impl Clone for CutlassDtype
Source§fn clone(&self) -> CutlassDtype
fn clone(&self) -> CutlassDtype
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CutlassDtype
impl Debug for CutlassDtype
Source§impl Display for CutlassDtype
impl Display for CutlassDtype
Source§impl Hash for CutlassDtype
impl Hash for CutlassDtype
Source§impl PartialEq for CutlassDtype
impl PartialEq for CutlassDtype
Source§fn eq(&self, other: &CutlassDtype) -> bool
fn eq(&self, other: &CutlassDtype) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CutlassDtype
impl Eq for CutlassDtype
impl StructuralPartialEq for CutlassDtype
Auto Trait Implementations§
impl Freeze for CutlassDtype
impl RefUnwindSafe for CutlassDtype
impl Send for CutlassDtype
impl Sync for CutlassDtype
impl Unpin for CutlassDtype
impl UnsafeUnpin for CutlassDtype
impl UnwindSafe for CutlassDtype
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.