def nvmlDeviceGetTopologyCommonAncestor(device1, device2):
    r"""
    /**
     * Retrieve the common ancestor for two devices
     * For all products.
     * Supported on Linux only.
     *
     * @param device1                              The identifier of the first device
     * @param device2                              The identifier of the second device
     * @param pathInfo                             A \ref nvmlGpuTopologyLevel_t that gives the path type
     *
     * @return
     *         - \ref NVML_SUCCESS                 if \a pathInfo has been set
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device1, or \a device2 is invalid, or \a pathInfo is NULL
     *         - \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
     */
    nvmlReturn_t DECLDIR nvmlDeviceGetTopologyCommonAncestor
    """
    c_level = _nvmlGpuTopologyLevel_t()
    fn = _nvmlGetFunctionPointer("nvmlDeviceGetTopologyCommonAncestor")
    ret = fn(device1, device2, byref(c_level))
    _nvmlCheckReturn(ret)
    return bytes_to_str(c_level.value)
def nvmlDeviceGetTopologyCommonAncestor ( device1 , device2 ) : c_level = _nvmlGpuTopologyLevel_t ( ) fn = _nvmlGetFunctionPointer ( "nvmlDeviceGetTopologyCommonAncestor" ) ret = fn ( device1 , device2 , byref ( c_level ) ) _nvmlCheckReturn ( ret ) return bytes_to_str ( c_level . value )
r"""
    /**
     * Retrieve the common ancestor for two devices
     * For all products.
     * Supported on Linux only.
     *
     * @param device1                              The identifier of the first device
     * @param device2                              The identifier of the second device
     * @param pathInfo                             A \ref nvmlGpuTopologyLevel_t that gives the path type
     *
     * @return
     *         - \ref NVML_SUCCESS                 if \a pathInfo has been set
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device1, or \a device2 is invalid, or \a pathInfo is NULL
     *         - \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
     */
    nvmlReturn_t DECLDIR nvmlDeviceGetTopologyCommonAncestor