Function hip_runtime_sys::hipCtxSetCurrent
source · pub unsafe extern "C" fn hipCtxSetCurrent(ctx: hipCtx_t) -> hipError_tExpand description
@brief Set the passed context as current/default
@param [in] ctx
@returns #hipSuccess, #hipErrorInvalidContext
@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice