<#part sign=pgpmime> On Wed, 29 Feb 2012 13:58:52 -0800, Mark Wiebe <[email protected]> wrote: > 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.
Until PyCUDA switches to CUDA 4.0's context management (and thereby ceases to run on anything but CUDA 4 or newer), we're tied to the crappy stack-based model that Nvidia forced on us. (Py)OpenCL has a much saner model that works today. Andreas _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
