cuda - Where I can find definitions of vector types (uchar3, float3, uint2, and alike)? -


for know such types exist, know fields have, couldn't find definitions them. i.e. found:

typedef __device_builtin__ struct uint2 uint2; 

but leaves questions have intact -- constructors? operators? , on.

so, definitions (real ones) types published somewhere? wouldn't reinvent wheel not optimized (starting how init such structure).

the definitions of these vector types included in:

/usr/local/cuda/include/vector_types.h 

(assuming standard cuda install path). of them structs, , don't require specific operator definitions operating on struct members, nor have official c++ style constructors.

the "constructors" refer e.g. make_int2 inline functions defined in:

/usr/local/cuda/include/vector_functions.h 

again, ordinary c style functions operating on structure members, not c++ style class/struct methods.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -