On Fri, 24 Jun 2011 11:26:00 -0400, Anthony LaTorre <[email protected]> wrote:
> I'm trying to use the GPUArray class to allocate and fill a vector array.
> 
> >>> from pycuda import autoinit
> >>> autoinit.device.name()
> 'GeForce GTX 470'
> >>> from pycuda import gpuarray
> >>> a_gpu = gpuarray.GPUArray(100, dtype=gpuarray.vec.float3)
> >>> a_gpu.fill(gpuarray.vec.make_float3(0.0, 0.0, 0.0))

Same issue (different causes) also fixed in pyopencl.

Andreas

Attachment: pgpIm3ZBWyrKH.pgp
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to