cuda.bindings._v2.driver.ctx_get_current#
- cuda.bindings._v2.driver.ctx_get_current() intptr_t#
Returns the CUDA context bound to the calling CPU thread.
Returns in
*pctxthe CUDA context bound to the calling CPU thread. If no context is bound to the calling CPU thread then*pctxis set to NULL andCUDA_SUCCESSis returned.- Returns:
Returned context handle.
- Return type:
intptr_t
See also
cuCtxGetCurrent