[][src]Function nvml_binding::bindings::nvmlDeviceGetTopologyNearestGpus

pub unsafe extern "C" fn nvmlDeviceGetTopologyNearestGpus(
    device: nvmlDevice_t,
    level: nvmlGpuTopologyLevel_t,
    count: *mut c_uint,
    deviceArray: *mut nvmlDevice_t
) -> nvmlReturn_t

Retrieve the set of GPUs that are nearest to a given device at a specific interconnectivity level For all products. Supported on Linux only.

@param device The identifier of the first device @param level The \ref nvmlGpuTopologyLevel_t level to search for other GPUs @param count When zero, is set to the number of matching GPUs such that \a deviceArray can be malloc'd. When non-zero, \a deviceArray will be filled with \a count number of device handles. @param deviceArray An array of device handles for GPUs found at \a level

@return - \ref NVML_SUCCESS if \a deviceArray or \a count (if initially zero) has been set - \ref NVML_ERROR_INVALID_ARGUMENT if \a device, \a level, or \a count is invalid, or \a deviceArray is NULL with a non-zero \a count - \ref NVML_ERROR_NOT_SUPPORTED if the device or OS does not support this feature - \ref NVML_ERROR_UNKNOWN an error has occurred in underlying topology discovery