Hello Hugh,

On Mon, Feb 13, 2012 at 9:41 AM, Hugh Owens <[email protected]> wrote:
> aa = np.ones(512)

Here aa has dtype=np.float64 (default). You have to explicitly convert
it to an array of floats:

> aa = np.ones(512).astype(np.float32)

Best regards,
Bogdan

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

Reply via email to