On Tue, 22 Feb 2011 16:06:14 +0530, nithin s <nithin19484(a)gmail.com> wrote:
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.  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.