Rok Roskar <[email protected]> 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
pgpztf7I_DwnY.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
