pub unsafe extern "C" fn hipDevicePrimaryCtxRetain(
    pctx: *mut *mut ihipCtx_t,
    dev: i32
) -> hipError_t
Expand description

@brief Retain the primary context on the GPU.

@param [out] Returned context handle of the new context @param [in] Device which primary context is released

@returns #hipSuccess

@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice