Function hip_runtime_sys::hipCtxCreate
source · pub unsafe extern "C" fn hipCtxCreate(
ctx: *mut hipCtx_t,
flags: c_uint,
device: hipDevice_t
) -> hipError_tExpand description
@} / /**
@defgroup Context Context Management @{ This section describes the context management functions of HIP runtime API. / /**
@addtogroup ContextD Context Management [Deprecated] @{ @ingroup Context This section describes the deprecated context management functions of HIP runtime API. / /** @brief Create a context and set it as current/ default context
@param [out] ctx @param [in] flags @param [in] associated device handle
@return #hipSuccess
@see hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice