cubecl_hip_sys

Function hipGetDeviceCount

Source
pub unsafe extern "C" fn hipGetDeviceCount(
    count: *mut c_int,
) -> hipError_t
Expand description

@brief Return number of compute-capable devices.

@param [out] count Returns number of compute-capable devices.

@returns #hipSuccess, #hipErrorNoDevice

Returns in @p *count the number of devices that have ability to run compute commands. If there are no such devices, then @ref hipGetDeviceCount will return #hipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returns #hipSuccess.