[PyCUDA] PyCUDA and CherryPy
Andreas Kloeckner
lists at informa.tiker.net
Sat Sep 10 10:41:47 PDT 2011
On Thu, 8 Sep 2011 16:28:26 -0700, Matthew Graham <mjg at cacr.caltech.edu> wrote:
Non-text part: multipart/mixed
Non-text part: multipart/alternative
> Hi Bryan,
>
> I'm not sure that I know how to do this properly: is the release context.pop() or context.detach()? And driver.init()?
You almost certainly want 'pop', because 'detach' will interfere with
PyCUDA trying to reattach and properly do cleanup.
driver.init() I believe would be a once-per-thread affair.
HTH,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20110910/ec1d2587/attachment.pgp>
More information about the PyCUDA
mailing list