Function hip_sys::hiprt::hipCtxSetCurrent
source · pub unsafe extern "C" fn hipCtxSetCurrent(
ctx: *mut ihipCtx_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