Further to this, it appears that the context lifetime management doesn't properly tie the creation of a CUDA device context to its deletion. I'm thinking of a scenario where a user can create multiple windows with OpenGL viewports in them, each with its own OpenGL context and corresponding CUDA context. Since PyCUDA is using a global stack to maintain these contexts, creating windows and destroying them in arbitrary order will probably do something funky.
-Mark On Wed, Feb 29, 2012 at 11:28 AM, Mark Wiebe <[email protected]> wrote: > I'd like to create a VBO using OpenGL, then manipulate it in PyCUDA as a > gpuarray. Is this possible? I looked a bit into how I would set the > deallocation policy, which needs to use OpenGL calls to free the VBO, but > gpuarray seems to hardcode CUDA. I would expect it to work like the NumPy > ndarray.base object, which owns the memory used by the ndarray. Is this > possible? > > Thanks, > Mark >
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
