Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
handle suicidal MPI apps first
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 21 Sep 2021 07:56:15 +0000 (09:56 +0200)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 21 Sep 2021 07:56:15 +0000 (09:56 +0200)
src/kernel/EngineImpl.cpp

index 9e5142e..0e83773 100644 (file)
@@ -205,11 +205,6 @@ void EngineImpl::shutdown()
     xbt_die("Bailing out to avoid that stop-before-start madness. Please fix your code.");
   }
 
-  /* Kill all actors (but maestro) */
-  instance_->maestro_->kill_all();
-  instance_->run_all_actors();
-  instance_->empty_trash();
-
 #if HAVE_SMPI
   if (not instance_->actor_list_.empty()) {
     if (smpi_process()->initialized()) {
@@ -221,6 +216,11 @@ void EngineImpl::shutdown()
   }
 #endif
 
+  /* Kill all actors (but maestro) */
+  instance_->maestro_->kill_all();
+  instance_->run_all_actors();
+  instance_->empty_trash();
+
   /* Let's free maestro now */
   instance_->destroy_maestro();