Speclib  0.1.2
The library for writing better CUDA libraries
sp::CudaVec< T, Size > Struct Template Reference

Provides a type mapping between CUDA vector types and sp::Vec. More...

#include <CudaVec.hpp>

Detailed Description

template<typename T, int Size>
struct sp::CudaVec< T, Size >

Provides a type mapping between CUDA vector types and sp::Vec.

Each CudaVec provides a typedef type which is the corresponding CUDA vector type, and thinType which is the same as type except when the vector size is 1, in which case it is T.

For example, CudaVec<float, 4> yields float4. Access through CudaVec_t or ThinCudaVec_t is convenient.