Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Trigger a warning when abort is called and a process exits.
authorAugustin Degomme <adegomme@gmail.com>
Wed, 27 May 2020 12:58:51 +0000 (14:58 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Wed, 27 May 2020 12:59:05 +0000 (14:59 +0200)
Does not hurt and can help understand why there is a deadlock in simgrid, when the app forgets to print an error message.

src/smpi/bindings/smpi_pmpi.cpp

index de3c35d..f4f090b 100644 (file)
@@ -120,6 +120,7 @@ int PMPI_Abort(MPI_Comm /*comm*/, int /*errorcode*/)
 {
   smpi_bench_end();
   // FIXME: should kill all processes in comm instead
+  XBT_WARN("MPI_Abort was called, something went probably wrong in this simulation ! Killing this process");
   smx_actor_t actor = SIMIX_process_self();
   simgrid::kernel::actor::simcall([actor] { actor->exit(); });
   return MPI_SUCCESS;