pub enum TensorMapDataType {
Show 18 variants
UInt8,
UInt16,
UInt32,
Int32,
UInt64,
Int64,
Float16,
Float32,
Float64,
BFloat16,
Float32Ftz,
TFloat32,
TFloat32Ftz,
Float8E4m3,
Float8E5m2,
Float4E2m1,
Float6E2m3,
Float6E3m2,
}Expand description
Element dtype consumed by the TMA. Matches
[cudarc::driver::sys::CUtensorMapDataType_enum] one-to-one. We
duplicate the enum so callers don’t depend on cudarc’s sys module
directly (which is gated on a CUDA-version feature in cudarc).
Variants§
UInt8
UInt16
UInt32
Int32
UInt64
Int64
Float16
Float32
Float64
BFloat16
Float32Ftz
TFloat32
TF32 / __nv_tf32.
TFloat32Ftz
Float8E4m3
Blackwell-only fp4/fp6/fp8 variants. Available with the
blackwell cargo feature only — the host-side enum is allowed
regardless of feature so unit tests can round-trip the value;
runtime kernels need a Blackwell driver.
Float8E5m2
Float4E2m1
Float6E2m3
Float6E3m2
Implementations§
Trait Implementations§
Source§impl Clone for TensorMapDataType
impl Clone for TensorMapDataType
Source§fn clone(&self) -> TensorMapDataType
fn clone(&self) -> TensorMapDataType
Returns a duplicate of the value. Read more
1.0.0 · 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 TensorMapDataType
impl Debug for TensorMapDataType
Source§impl PartialEq for TensorMapDataType
impl PartialEq for TensorMapDataType
impl Copy for TensorMapDataType
impl Eq for TensorMapDataType
impl StructuralPartialEq for TensorMapDataType
Auto Trait Implementations§
impl Freeze for TensorMapDataType
impl RefUnwindSafe for TensorMapDataType
impl Send for TensorMapDataType
impl Sync for TensorMapDataType
impl Unpin for TensorMapDataType
impl UnsafeUnpin for TensorMapDataType
impl UnwindSafe for TensorMapDataType
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more