pub unsafe extern "C" fn cuCtxAttach(
pctx: *mut CUcontext,
flags: c_uint,
) -> CUresult
Expand description
\brief Increment a context’s usage-count
\deprecated
Note that this function is deprecated and should not be used.
Increments the usage count of the context and passes back a context handle in \p *pctx that must be passed to ::cuCtxDetach() when the application is done with the context. ::cuCtxAttach() fails if there is no context current to the thread.
Currently, the \p flags parameter must be 0.
\param pctx - Returned context handle of the current context \param flags - Context attach flags (must be 0)
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE \notefnerr
\sa ::cuCtxCreate, ::cuCtxDestroy, ::cuCtxDetach, ::cuCtxGetApiVersion, ::cuCtxGetCacheConfig, ::cuCtxGetDevice, ::cuCtxGetFlags, ::cuCtxGetLimit, ::cuCtxPopCurrent, ::cuCtxPushCurrent, ::cuCtxSetCacheConfig, ::cuCtxSetLimit, ::cuCtxSynchronize