cubecl_hip_sys

Function hipCtxSetCurrent

Source
pub unsafe extern "C" fn hipCtxSetCurrent(ctx: hipCtx_t) -> hipError_t
Expand description

@brief Set the passed context as current/default

@param [in] ctx The context to set as current

@returns #hipSuccess, #hipErrorInvalidContext

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

@warning This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.