[PyCUDA] Copy a GPUArray
Andreas Kloeckner
lists at informa.tiker.net
Tue Jan 17 15:01:39 PST 2012
On Tue, 17 Jan 2012 13:50:47 -0800, Jesse Lu <jesselu at stanford.edu> wrote:
> Hi everyone,
>
> Quick question, how should I copy the data from one GPUArray to another? Is
> there something better than
>
> y.set(x.get())
You can do a device-to-device copy from x.gpudata to y.gupdata.
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20120117/c7af6175/attachment.pgp>
More information about the PyCUDA
mailing list