pub unsafe extern "C" fn cuDevicePrimaryCtxRelease_v2(
dev: CUdevice,
) -> CUresult
Expand description
\brief Release the primary context on the GPU
Releases the primary context interop on the device. A retained context should always be released once the user is done using it. The context is automatically reset once the last reference to it is released. This behavior is different when the primary context was retained by the CUDA runtime from CUDA 4.0 and earlier. In this case, the primary context remains always active.
Releasing a primary context that has not been previously retained will fail with ::CUDA_ERROR_INVALID_CONTEXT.
Please note that unlike ::cuCtxDestroy() this method does not pop the context from stack in any circumstances.
\param dev - Device which primary context is released
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_DEVICE, ::CUDA_ERROR_INVALID_CONTEXT \notefnerr
\sa ::cuDevicePrimaryCtxRetain, ::cuCtxDestroy, ::cuCtxGetApiVersion, ::cuCtxGetCacheConfig, ::cuCtxGetDevice, ::cuCtxGetFlags, ::cuCtxGetLimit, ::cuCtxPopCurrent, ::cuCtxPushCurrent, ::cuCtxSetCacheConfig, ::cuCtxSetLimit, ::cuCtxSynchronize