pub unsafe extern "C" fn cuCtxGetId(
ctx: CUcontext,
ctxId: *mut c_ulonglong,
) -> CUresult
Expand description
\brief Returns the unique Id associated with the context supplied
Returns in \p ctxId the unique Id which is associated with a given context. The Id is unique for the life of the program for this instance of CUDA. If context is supplied as NULL and there is one current, the Id of the current context is returned.
\param ctx - Context for which to obtain the Id \param ctxId - Pointer to store the Id of the context
\return ::CUDA_SUCCESS, ::CUDA_ERROR_CONTEXT_IS_DESTROYED, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE \notefnerr
\sa ::cuCtxCreate, ::cuCtxDestroy, ::cuCtxGetApiVersion, ::cuCtxGetCacheConfig, ::cuCtxGetDevice, ::cuCtxGetFlags, ::cuCtxGetLimit, ::cuCtxPushCurrent