cuda.bindings._v2.driver.ctx_detach#
- cuda.bindings._v2.driver.ctx_detach(intptr_t ctx)#
Decrement a context’s usage-count.
[Deprecated]. Note that this function is deprecated and should not be used. Decrements the usage count of the context
ctx, and destroys the context if the usage count goes to 0. The context must be a handle that was passed back bycuCtxCreate()orctx_attach(), and must be current to the calling thread.- Parameters:
ctx (intptr_t) – Context to destroy.
See also
cuCtxDetach