pub trait CudaTypeName {
    const NAME: &'static str;
}
Expand description

Maps a rust type to it’s corresponding CudaTypeName::NAME in cuda c++ land.

Required Associated Constants§

source

const NAME: &'static str

Implementations on Foreign Types§

source§

impl CudaTypeName for i8

source§

const NAME: &'static str = "char"

source§

impl CudaTypeName for i16

source§

const NAME: &'static str = "short"

source§

impl CudaTypeName for isize

source§

const NAME: &'static str = "intptr_t"

source§

impl CudaTypeName for f16

source§

const NAME: &'static str = "__half"

source§

impl CudaTypeName for u32

source§

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

source§

impl CudaTypeName for bool

source§

const NAME: &'static str = "bool"

source§

impl CudaTypeName for u8

source§

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

source§

impl CudaTypeName for bf16

source§

const NAME: &'static str = "__nv_bfloat16"

source§

impl CudaTypeName for u16

source§

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

source§

impl CudaTypeName for i32

source§

const NAME: &'static str = "int"

source§

impl CudaTypeName for i64

source§

const NAME: &'static str = "long"

source§

impl CudaTypeName for f32

source§

const NAME: &'static str = "float"

source§

impl CudaTypeName for f64

source§

const NAME: &'static str = "double"

source§

impl CudaTypeName for u64

source§

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

source§

impl CudaTypeName for usize

source§

const NAME: &'static str = "size_t"

Implementors§