Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix ampi example by not cleaning the tracing submodule before the actor end
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 1 Aug 2019 15:55:38 +0000 (17:55 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 1 Aug 2019 15:55:38 +0000 (17:55 +0200)
src/smpi/bindings/smpi_pmpi.cpp
src/smpi/internals/smpi_actor.cpp

index a57e4b1..c05c46d 100644 (file)
@@ -63,7 +63,6 @@ int PMPI_Finalize()
   smpi_process()->finalize();
 
   TRACE_smpi_comm_out(rank_traced);
-  TRACE_smpi_finalize(rank_traced);
   return MPI_SUCCESS;
 }
 
index 90e2db2..bb5d5af 100644 (file)
@@ -50,6 +50,8 @@ ActorExt::ActorExt(s4u::ActorPtr actor) : actor_(actor)
 
 ActorExt::~ActorExt()
 {
+  TRACE_smpi_finalize(actor_->get_pid());
+
   if (comm_self_ != MPI_COMM_NULL)
     simgrid::smpi::Comm::destroy(comm_self_);
   if (comm_intra_ != MPI_COMM_NULL)