Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow the use of cfg=smpi/finalization-barrier for replay as well.
authorAugustin Degomme <adegomme@users.noreply.github.com>
Thu, 5 Aug 2021 15:23:16 +0000 (17:23 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Thu, 5 Aug 2021 15:23:16 +0000 (17:23 +0200)
In some cases, some processes might try to leave a bit too early, this has to be investigated.

src/smpi/internals/smpi_replay.cpp

index ce44fd8..1809afb 100644 (file)
@@ -830,6 +830,10 @@ void smpi_replay_main(int rank, const char* private_trace_filename)
     }
     simgrid::smpi::Request::waitall(count_requests, requests.data(), MPI_STATUSES_IGNORE);
   }
+
+  if(simgrid::config::get_value<bool>("smpi/finalization-barrier"))
+    simgrid::smpi::colls::barrier(MPI_COMM_WORLD);
+
   active_processes--;
 
   if(active_processes==0){