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 *pctx the CUDA context bound to the calling CPU thread. If no context is bound to the calling CPU thread then *pctx is set to NULL and CUDA_SUCCESS is returned.

Returns:

Returned context handle.

Return type:

intptr_t

See also

cuCtxGetCurrent