cubecl_hip_sys

Function hipCtxPopCurrent

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

@brief Pop the current/default context and return the popped context.

@param [out] ctx The current context to pop

@returns #hipSuccess, #hipErrorInvalidContext

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

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