wow that makes it pretty straightforward, thanks! I'm afraid I'm probably missing something obvious, but is there a similar trick for streams?
On Nov 5, 2013, at 4:26 PM, Andreas Kloeckner <li...@dexter.tiker.net> wrote: > Rok Roskar <ros...@physik.uzh.ch> writes: >> I've got a host-side CUDA library wrapped in Cython and I'd like to use >> it on a device-side array that I've allocated in python with PyCuda. >> However, I'm completely at a loss as to how I should pass the device >> pointers from the python side of things to the C library. In CUDA the >> device pointers look like normal pointers, but in PyCuda I get a >> DeviceAllocation object -- how can I pass the pointer address >> information to the C library through Cython? What types should I use in >> the Cython wrapper? > > Cast the DeviceAllocation object to int. That'll give you the raw > pointer value. > > Andreas _______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda