Ashwin Srinath <[email protected]> writes: > Thank you for your reply, Andreas, and for your work! > > Keeping in mind that `array` is of type double*, would this be the right > way to do it? I realize this is more a Cython question: > > cdef extern from "stdint.h": > ctypedef unsigned long long uint64_t > > V_gpu = gpuarray.empty(V.getSizes(), dtype=np.float64, > gpudata=<uint64_t>array)
Yes, I think so. Perhaps cast gpudata to a bare int if there's trouble. Also there are concerns of who owns the data and how long it lives, but if you don't need that, then you should be set. Andreas
pgpzJ8XfNl4nx.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
