#[non_exhaustive]#[repr(u32)]pub enum DataType {
Show 35 variants
F8UE5M3 = 34,
F16 = 2,
ComplexF16 = 6,
Bf16 = 14,
ComplexBf16 = 15,
F32 = 0,
ComplexF32 = 4,
F64 = 1,
ComplexF64 = 5,
I4 = 16,
ComplexI4 = 17,
U4 = 18,
ComplexU4 = 19,
I8 = 3,
ComplexI8 = 7,
U8 = 8,
ComplexU8 = 9,
I16 = 20,
ComplexI16 = 21,
U16 = 22,
ComplexU16 = 23,
I32 = 10,
ComplexI32 = 11,
U32 = 12,
ComplexU32 = 13,
I64 = 24,
ComplexI64 = 25,
U64 = 26,
ComplexU64 = 27,
F8E4M3 = 28,
F8E5M2 = 29,
F8UE8M0 = 30,
F6E2M3 = 31,
F6E3M2 = 32,
F4E2M1 = 33,
}Expand description
Rust wrapper for CUDA’s data type enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
F8UE5M3 = 34
Real as an unsigned nv_fp8_ue5m3.
F16 = 2
16-bit real half precision floating-point (IEEE 754-2008 binary16).
ComplexF16 = 6
32-bit complex (2x16-bit half precision floats).
Bf16 = 14
16-bit real bfloat16 floating-point.
ComplexBf16 = 15
32-bit complex (2x16-bit bfloat16 floats).
F32 = 0
32-bit real single precision floating-point (IEEE 754 binary32).
ComplexF32 = 4
64-bit complex (2x32-bit single precision floats).
F64 = 1
64-bit real double precision floating-point (IEEE 754 binary64).
ComplexF64 = 5
128-bit complex (2x64-bit double precision floats).
I4 = 16
4-bit real signed integer.
ComplexI4 = 17
8-bit complex (2x4-bit signed integers).
U4 = 18
4-bit real unsigned integer.
ComplexU4 = 19
8-bit complex (2x4-bit unsigned integers).
I8 = 3
8-bit real signed integer.
ComplexI8 = 7
16-bit complex (2x8-bit signed integers).
U8 = 8
8-bit real unsigned integer.
ComplexU8 = 9
16-bit complex (2x8-bit unsigned integers).
I16 = 20
16-bit real signed integer.
ComplexI16 = 21
32-bit complex (2x16-bit signed integers).
U16 = 22
16-bit real unsigned integer.
ComplexU16 = 23
32-bit complex (2x16-bit unsigned integers).
I32 = 10
32-bit real signed integer.
ComplexI32 = 11
64-bit complex (2x32-bit signed integers).
U32 = 12
32-bit real unsigned integer.
ComplexU32 = 13
64-bit complex (2x32-bit unsigned integers).
I64 = 24
64-bit real signed integer.
ComplexI64 = 25
128-bit complex (2x64-bit signed integers).
U64 = 26
64-bit real unsigned integer.
ComplexU64 = 27
128-bit complex (2x64-bit unsigned integers).
F8E4M3 = 28
8-bit real floating point in E4M3 format.
F8E5M2 = 29
8-bit real floating point in E5M2 format.
F8UE8M0 = 30
8-bit real floating point in E8M0 format (unsigned exponent, zero mantissa bits).
F6E2M3 = 31
6-bit real floating point in E2M3 format (2-bit exponent, 3-bit mantissa).
F6E3M2 = 32
6-bit real floating point in E3M2 format (3-bit exponent, 2-bit mantissa).
F4E2M1 = 33
4-bit real floating point in E2M1 format (2-bit exponent, 1-bit mantissa).
Implementations§
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
Source§impl From<DataType> for cudaDataType_t
impl From<DataType> for cudaDataType_t
impl StructuralPartialEq for DataType
Source§impl TryFrom<cudaDataType_t> for DataType
impl TryFrom<cudaDataType_t> for DataType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: cudaDataType_t) -> Result<Self, UnknownEnumValue>
fn try_from(value: cudaDataType_t) -> Result<Self, UnknownEnumValue>
Auto Trait Implementations§
impl Forget for DataType
impl Freeze for DataType
impl Move for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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
key and return true if they are equal.