]> AND Public Git Repository - simgrid.git/blobdiff - examples/cpp/routing-get-clusters/s4u-routing-get-clusters.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add option smpi/errors-are-fatal to allow users to bypass MPI errors returned by...
[simgrid.git] / examples / cpp / routing-get-clusters / s4u-routing-get-clusters.cpp
index 22e7c1ab805e61895a91cc4d43169849a8840e7d..660f1eb896b4a4d02e94d938326f6aaaef8400ff 100644 (file)
@@ -27,13 +27,11 @@ int main(int argc, char* argv[])
   std::vector<simgrid::kernel::routing::DragonflyZone*> dragonfly_clusters =
       e.get_filtered_netzones<simgrid::kernel::routing::DragonflyZone>();
 
-  if (not dragonfly_clusters.empty()) {
-    for (auto d : dragonfly_clusters) {
-      XBT_INFO("%s' dragonfly topology:", d->get_cname());
-      for (int i = 0; i < d->get_host_count(); i++) {
-        const simgrid::kernel::routing::DragonflyZone::Coords coords = d->rankId_to_coords(i);
-        XBT_INFO("   %d: (%u, %u, %u, %u)", i, coords.group, coords.chassis, coords.blade, coords.node);
-      }
+  for (auto d : dragonfly_clusters) {
+    XBT_INFO("%s' dragonfly topology:", d->get_cname());
+    for (int i = 0; i < d->get_host_count(); i++) {
+      const simgrid::kernel::routing::DragonflyZone::Coords coords = d->rankId_to_coords(i);
+      XBT_INFO("   %d: (%u, %u, %u, %u)", i, coords.group, coords.chassis, coords.blade, coords.node);
     }
   }