Michael McNeil Forbes <[email protected]> writes: > Thats the idea, but the problem I am having is getting the pointer into the > correct DeviceAllocation type. > > What is the type of x.gpudata in the theano example you show? > > The c++ function claims to expect a ctypes.c_ulonglong, but I think the > python wrapper needs a DeviceAllocation object which I do not know how to > make from the long long address provided by the DeviceNDArray.
Are you trying to get a pointer into or out of PyCUDA? If into, you can just use Python ints, or alternatively: http://documen.tician.de/pycuda/driver.html#pycuda.driver.PointerHolderBase Andreas
pgpArnDdW_j9A.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
