On Wed, 18 May 2011 08:35:38 +0200, Andreas Kloeckner <[email protected]> wrote: > Hi Lev, > > On Tue, 17 May 2011 12:50:35 -0400, Lev Givon <[email protected]> wrote: > > Is there a way to access the actual ID of a stream > > created with pycuda.driver.Stream? If not, would it be possible to add > > such a field to that class? It would be useful for setting the stream > > used when calling CUFFT or CUBLAS functions invoked via ctypes. > > I'm not sure I understand 100% whether it's a good idea to allow this, > but for now there's Stream.handle which should give you a pointer-sized > integer containing the stream pointer. For the same reason, I'm leaving > this undocumented for now.
In particular, I'm not sure that this (driver API) pointer is something that you can easily feed to CUFFT/CUBLAS. Let me know if it's useful, and we'll discuss it. Andreas
pgpEjSupreJ9w.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
