On Mittwoch 11 Februar 2009, Peter Berrington wrote: > Thanks a lot for working on that Andreas. I'd be more than happy to write a > tutorial/example and documentation, but I wasn't able to get it working > when I played around with it earlier today. I assume that I should first > call import pycuda.gl.autoinit to set up a context, however that throws > this error: > pycuda._driver.LogicError: cuGLInit failed: invalid context > > If I instead use the standard pycuda autoinit and then try to call > pycuda.gl.init() directly it instead fails with > pycuda._driver.Error: cuGLInit failed: unknown > > I browsed around in the source but I'm afraid I couldn't see anything that > looked obviously wrong, although there was apparently a mispelling in the > gl/autoinit.py file: The function pycuda.gl.make_gl_context(device) is > called but it looks that module only has a make_context() function, not a > make_gl_context function.
Fixed, thanks. > Am I misunderstanding how to go about initializing pycuda? If not, is there > any more information I can provide that might help you identify why > cuGLInit function call fails? Thanks! I've googled around a bit and written up my findings at http://documen.tician.de/pycuda/gl.html (Pull recent git to get the updated autoinit.) Andreas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyCuda mailing list PyCuda@tiker.net http://tiker.net/mailman/listinfo/pycuda_tiker.net