cubecl_hip_sys

Function hipCtxPushCurrent

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

@brief Push the context to be set as current/ default context

@param [in] ctx The current context to push

@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.