Note
This functionality is scheduled for release 0.93 and only available in source-built versions of PyCuda’s git tree.
Enable GL interoperability for the already-created (so far non-GL) and currently active pycuda.driver.Context.
According to the forum post referenced in the note below, this will succeed on Windows XP and Linux, but it will not work on Windows Vista. There you have to create the GL-enabled context using make_context().
Warning
This will fail with a rather unhelpful error message if you don’t already have a GL context created and active.
Create and return a pycuda.driver.Context that has GL interoperability enabled. Note that this is an alternative to calling init() on an already-active context.
Warning
This will fail with a rather unhelpful error message if you don’t already have a GL context created and active.
Note
See this post on the Nvidia forums for a discussion of problems and solutions with the GL interop interface.