On Tue, 22 Feb 2011 16:06:14 +0530, nithin s <nithin19...@gmail.com> wrote: > Hi, > > is there any way to interpret a gpuarray's dtype as a vector? I > understand that it tied to numpy.dtype. But I also saw code in > pycuda/tools.py that interprets pycuda::complex<float> .
Not yet. That said, numpy has support for record data types. [1] We would just have to provide canned ones for CUDA's vector types and recognize them in pycuda.tools.dtype_to_ctype() and pycuda.tools.parse_c_arg(). That should do the trick. Andreas [1] http://docs.scipy.org/doc/numpy/reference/arrays.dtypes.html
pgppVNOLOewoy.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda