Function hip_sys::hiprt::hipGetDeviceCount
source · pub unsafe extern "C" fn hipGetDeviceCount(
count: *mut i32
) -> hipError_tExpand description
@brief Return number of compute-capable devices.
@param [output] 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.