cubecl_hip_sys

Function hipCtxGetDevice

Source
pub unsafe extern "C" fn hipCtxGetDevice(
    device: *mut hipDevice_t,
) -> hipError_t
Expand description

@brief Get the handle of the device associated with current/default context

@param [out] device The device from the current context

@returns #hipSuccess, #hipErrorInvalidContext

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

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