Function hip_sys::hiprt::hipCtxGetDevice

source ·
pub unsafe extern "C" fn hipCtxGetDevice(
    device: *mut i32
) -> hipError_t
Expand description

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

@param [out] device

@returns #hipSuccess, #hipErrorInvalidContext

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