cuda.bindings._v2.driver.ctx_pop_current_v2#
- cuda.bindings._v2.driver.ctx_pop_current_v2() intptr_t#
Pops the current CUDA context from the current CPU thread.
Pops the current CUDA context from the CPU thread and passes back the old context handle in
*pctx. That context may then be made current to a different CPU thread by callingcuCtxPushCurrent(). If a context was current to the CPU thread beforecuCtxCreate()orcuCtxPushCurrent()was called, this function makes that context current to the CPU thread again.- Returns:
Returned popped context handle.
- Return type:
intptr_t
See also
cuCtxPopCurrent_v2