cuda.bindings._v2.driver.ctx_push_current_v2#
- cuda.bindings._v2.driver.ctx_push_current_v2(intptr_t ctx)#
Pushes a context on the current CPU thread.
Pushes the given context
ctxonto the CPU thread’s stack of current contexts. The specified context becomes the CPU thread’s current context, so all CUDA functions that operate on the current context are affected. The previous current context may be made current again by callingcuCtxDestroy()orcuCtxPopCurrent().- Parameters:
ctx (intptr_t) – Context to push.
See also
cuCtxPushCurrent_v2