On Fri, 30 Dec 2011 11:55:51 -0500, Yifei Li <[email protected]> wrote: > Hi, > > I got the following error when trying to call some pycuda code in a CPU > thread: > > explicit_context_dependent failed: invalid context - no currently active > context? > > More details, I use pyQt for GUI, and hence QThread is used for threading. > In Qt, all the GUI stuff live in the main thread. > > No such problem after I moved the pycuda code out of my QThread. > > Has anyone had this problem? Any help is appreciated.
PyCUDA + threads is possible, but somewhat complicated to manage correctly: http://wiki.tiker.net/PyCuda/Examples/MultipleThreads HTH, Andreas
pgpDaGP63i2oL.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
