If I do not call pycuda.autoinit, I get this error: LogicError: explicit_context_dependent failed: invalid context - no currently active context?
If I try to manually init the driver like show in the doc like this: import pycuda.driver as cuda cuda.init() #init pycuda driver current_dev = cuda.Device(device_nr) #device we are working on ctx = current_dev.make_context() #make a working context ctx.push() #let context make the lead I get this error: LogicError: cuCtxCreate failed: invalid device I'm triing to force to always initialize pycuda gpu first. I can do it , but it is not easy. So if someone remember how or can find where we explained how to tell pycuda to reuse the current open context, it would be great. thanks Fred On Tue, May 1, 2012 at 2:15 AM, Andreas Kloeckner <[email protected]> wrote: > On Mon, 30 Apr 2012 16:58:59 -0400, Frédéric Bastien <[email protected]> wrote: >> Hi, >> >> I have a the driver already initialized and I want pycuda to reuse >> that context. How can I make this? I didn't found in the doc or in >> previous email. But I remember having it somewhere. Can someone find >> this information again? > > Just start using CUDA, I think. Since context state is implicit, you'll > be good to go as soon as a context exists... ? > > Andreas _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
