cubecl_hip_sys

Function hipDeviceGet

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

@brief Returns a handle to a compute device @param [out] device Handle of device @param [in] ordinal Device ordinal

@returns #hipSuccess, #hipErrorInvalidDevice