pub unsafe extern "C" fn cuCtxGetCurrent(
pctx: *mut CUcontext,
) -> CUresult
Expand description
\brief Returns the CUDA context bound to the calling CPU thread.
Returns in \p *pctx the CUDA context bound to the calling CPU thread. If no context is bound to the calling CPU thread then \p *pctx is set to NULL and ::CUDA_SUCCESS is returned.
\param pctx - Returned context handle
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, \notefnerr
\sa ::cuCtxSetCurrent, ::cuCtxCreate, ::cuCtxDestroy, ::cudaGetDevice