skcuda.misc.done_context

skcuda.misc.done_context(ctx)[source]

Detach from a context cleanly.

Detach from a context and remove its pop() from atexit.

Parameters:ctx (pycuda.driver.Context) – Context from which to detach.