Received from Baskaran Sankaran on Tue, Nov 17, 2015 at 06:15:57PM EST:
> On Tuesday, November 17, 2015, Lev Givon <[email protected]> wrote:
> 
> > Received from Baskaran Sankaran on Tue, Nov 17, 2015 at 05:56:56PM EST:
> > > No UVA is not enabled on them; I already tried memcpy_dtod.
> > >
> > > In send_pyobj the array would just be passed as reference though right?
> >
> > Since send_pyobj() passes its argument directly to pickle.dumps(), it
> > will serialize the array contents just as it would with a normally
> > allocated numpy array.
>
> Oh right, that's a good catch. If I can get the host pointer, then I can
> just use send. Is it possible to access host mem pointer in pycuda then?

Well, you can get a pointer to the array's host memory via
array_name.ctypes.data, but you can't use that pointer by default in a different
Python process because the memory isn't shared. Not sure that PyCUDA currently
provides anything to facilitate sharing of host memory between processes (the
IPC mechanism I mentioned only applies to GPU pointers).
-- 
Lev Givon
Bionet Group | Neurokernel Project
http://lebedov.github.io/
http://neurokernel.github.io/


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

Reply via email to