]> https://gitweb.dealii.org/ - dealii.git/commitdiff
MPI: silence "avoid a deadlock" error message 9724/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 24 Mar 2020 14:32:17 +0000 (10:32 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 24 Mar 2020 14:32:29 +0000 (10:32 -0400)
When an exception occurs (solver convergence, out of memory, etc..), we
end up printing an error message from every single MPI rank. I have
never used this information in practice and it produces a lot of
unnecessary noise. Even worse, it produces gigantic, useless log files
when running with 100k+ MPI ranks. Therefore, I proposed removing this
altogether.

source/base/mpi.cc

index 3d7fe8b5e327bd52a5a14c3b226461ca06ee3eca..d0a62bc9bb3f0060148e57a92bb78ae6a58a3ab3 100644 (file)
@@ -976,11 +976,7 @@ namespace Utilities
           if (std::uncaught_exception() == true)
 #  endif
             {
-              std::cerr
-                << "ERROR: Uncaught exception in MPI_InitFinalize on proc "
-                << this_mpi_process(MPI_COMM_WORLD)
-                << ". Skipping MPI_Finalize() to avoid a deadlock."
-                << std::endl;
+              // do not try to call MPI_Finalize to avoid a deadlock.
             }
           else
             {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.