On Wed, 14 Dec 2011 09:15:19 -0500, Thomas Wiecki <[email protected]> 
wrote:
> This is getting very weird. I went into the function with pdb now.
> np.dtype('uint32') is in DTYPE_TO_NAME but for some reason it fails to
> look it up:
> 
> KeyError: dtype('uint32')
> > /usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-i686.egg/pycuda/compyte/dtypes.py(104)dtype_to_ctype()
>     103         print np.dtype('uint32') in DTYPE_TO_NAME
> --> 104         print DTYPE_TO_NAME[dtype]
>     105         raise ValueError, "unable to map dtype '%s'" % dtype
> 
> ipdb> dtype
> dtype('uint32')
> ipdb> np.dtype('uint32') == dtype
> True
> ipdb> DTYPE_TO_NAME(np.dtype('uint32'))
> 'unsigned'
> ipdb> DTYPE_TO_NAME[dtype]
> *** KeyError: dtype('uint32')

What's your numpy version?

Andreas

Attachment: pgpDeNgtH6qa0.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to