Skip to main content

CudaType

Trait CudaType 

Source
pub trait CudaType {
    const CUDA_TYPE: &'static str;
}
Expand description

trait for cuda type

Required Associated Constants§

Source

const CUDA_TYPE: &'static str

the cuda type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CudaType for bool

Source§

const CUDA_TYPE: &'static str = "bool"

Source§

impl CudaType for f32

Source§

const CUDA_TYPE: &'static str = "float"

Source§

impl CudaType for f64

Source§

const CUDA_TYPE: &'static str = "double"

Source§

impl CudaType for i8

Source§

const CUDA_TYPE: &'static str = "char"

Source§

impl CudaType for i16

Source§

const CUDA_TYPE: &'static str = "short"

Source§

impl CudaType for i32

Source§

const CUDA_TYPE: &'static str = "int"

Source§

impl CudaType for i64

Available on non-Windows only.
Source§

const CUDA_TYPE: &'static str = "long"

Source§

impl CudaType for isize

Available on 64-bit and non-Windows only.
Source§

const CUDA_TYPE: &'static str = "long"

Source§

impl CudaType for u8

Source§

const CUDA_TYPE: &'static str = "unsigned char"

Source§

impl CudaType for u16

Source§

const CUDA_TYPE: &'static str = "unsigned short"

Source§

impl CudaType for u32

Source§

const CUDA_TYPE: &'static str = "unsigned int"

Source§

impl CudaType for u64

Available on non-Windows only.
Source§

const CUDA_TYPE: &'static str = "unsigned long"

Source§

impl CudaType for usize

Available on 64-bit and non-Windows only.
Source§

const CUDA_TYPE: &'static str = "unsigned long"

Source§

impl CudaType for bf16

Source§

const CUDA_TYPE: &'static str = "__nv_bfloat16"

Source§

impl CudaType for f16

Source§

const CUDA_TYPE: &'static str = "__half"

Source§

impl CudaType for Complex32

Source§

const CUDA_TYPE: &'static str = "cuFloatComplex"

Source§

impl CudaType for Complex64

Source§

const CUDA_TYPE: &'static str = "cuDoubleComplex"

Implementors§