Function hip_sys::hiprt::hipCtxGetCurrent
source · pub unsafe extern "C" fn hipCtxGetCurrent(
ctx: *mut *mut ihipCtx_t
) -> hipError_tExpand description
@brief Get the handle of the current/ default context
@param [out] ctx
@returns #hipSuccess, #hipErrorInvalidContext
@see hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice