pub unsafe extern "C" fn hipDevicePrimaryCtxRelease(
    dev: i32
) -> hipError_t
Expand description

@brief Release the primary context on the GPU.

@param [in] Device which primary context is released

@returns #hipSuccess

@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice @warning This function return #hipSuccess though doesn’t release the primaryCtx by design on HIP/HCC path.