pub unsafe extern "C" fn hipDevicePrimaryCtxRetain(
pctx: *mut hipCtx_t,
dev: hipDevice_t,
) -> hipError_t
Expand description
@brief Retain the primary context on the GPU.
@param [out] pctx Returned context handle of the new context @param [in] dev Device which primary context is released
@returns #hipSuccess
@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
@warning This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.