inducer / compyte

A common set of compute primitives for PyCUDA and PyOpenCL
58 stars 21 forks source link

vector type(float2,...) are not supported #1

Open nouiz opened 13 years ago

nouiz commented 13 years ago

There is 42 of them: char1, uchar1, char2, uchar2, char3, uchar3, char4, uchar4, short1, ushort1, short2, ushort2, short3, ushort3, short4, ushort4, int1, uint1, int2, uint2, int3, uint3, int4, uint4, long1, ulong1, long2, ulong2, long3, ulong3, long4, ulong4, longlong1, ulonglong1, longlong2, ulonglong2, float1, float2, float3, float4, double1, double2

There is 2 way to implement them: add basic typenum as for other basic dtype or use a system like numpy composite dtype. I'm not sure what is best.

inducer commented 13 years ago

FWIW, pyopencl and pycuda have gone the composite type route.

nouiz commented 13 years ago

I will look at how you do it when I attach this problem.

thanks