Received from Gavin Weiguang Ding on Wed, Oct 08, 2014 at 10:41:01AM EDT:
> I see.
> 
> Again to confirm, are the following lines (in proc2) the right way to
> actually copy data?
> x_gpu = gpuarray.GPUArray(shape, dtype, gpudata=drv.IPCMemoryHandle(h))
> y_gpu = gpuarray.zeros_like(x_gpu)
> drv.memcpy_peer(y_gpu.ptr, x_gpu.ptr, x_gpu.dtype.itemsize * x_gpu.size,
> ctx, ctx)
> 
> It seems working for me, I'm kind of not sure about to set dest_ctx and
> src_ctx to be the same.
> 

Yes - that should do it.
> Thanks a lot!!!
-- 
Lev Givon
Bionet Group | Neurokernel Project
http://www.columbia.edu/~lev/
http://lebedov.github.io/
http://neurokernel.github.io/


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

Reply via email to