cubecl_hip_sys

Function hipSetValidDevices

Source
pub unsafe extern "C" fn hipSetValidDevices(
    device_arr: *mut c_int,
    len: c_int,
) -> hipError_t
Expand description

@brief Set a list of devices that can be used.

@param[in] device_arr List of devices to try @param[in] len Number of devices in specified list

@returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue

@see #hipGetDevice, #hipGetDeviceCount. #hipSetDevice. #hipGetDeviceProperties. #hipSetDeviceFlags. #hipChooseDevice