Function hip_sys::hiprt::hipDevicePrimaryCtxGetState
source · pub unsafe extern "C" fn hipDevicePrimaryCtxGetState(
dev: i32,
flags: *mut u32,
active: *mut i32
) -> hipError_tExpand description
@} / /** @brief Get the state of the primary context.
@param [in] Device to get primary context flags for @param [out] Pointer to store flags @param [out] Pointer to store context state; 0 = inactive, 1 = active
@returns #hipSuccess
@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice