Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill an external dependency that was for stateful MC
[simgrid.git] / src / smpi / colls / coll_tuned_topo.cpp
index 087f488be773ea41fd8930dc1f19023268e18487..2fe51b2722ad545e5cb3267f8c353ebbc76bbae6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2022. The SimGrid Team.
+/* Copyright (c) 2013-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -464,7 +464,7 @@ ompi_coll_tuned_topo_build_chain( int fanout,
 {
     int rank, size;
     int srank; /* shifted rank */
-    int i,maxchainlen;
+    int maxchainlen;
     int mark;
     ompi_coll_tree_t *chain;
 
@@ -494,7 +494,8 @@ ompi_coll_tuned_topo_build_chain( int fanout,
       fflush(stdout);
       return nullptr;
     }
-    for(i=0;i<fanout;i++) chain->tree_next[i] = -1;
+    for (int i = 0; i < fanout; i++)
+      chain->tree_next[i] = -1;
 
     /*
      * Set root & numchain