cubecl_hip_sys

Function hipDevicePrimaryCtxGetState

Source
pub unsafe extern "C" fn hipDevicePrimaryCtxGetState(
    dev: hipDevice_t,
    flags: *mut c_uint,
    active: *mut c_int,
) -> hipError_t
Expand description

@brief Get the state of the primary context.

@param [in] dev Device to get primary context flags for @param [out] flags Pointer to store flags @param [out] active Pointer to store context state; 0 = inactive, 1 = active

@returns #hipSuccess

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

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