Andrea Cesari wrote: [...]
> __global__ void thread_index(float *dest)
^^^^ you've said your kernel takes floats
> dest=numpy.zeros(lung_vett)
^^^ but this creates an array of float64 (aka double) values.
you want:
dest = numpy.zeros(lung_vett, dtype=numpy.float32)
> thread_index(drv.Out(dest),block=(lung_vett,1,1))
Cheers,
Lawrence
--
Lawrence Mitchell <[email protected]>
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda
