From 742c5dcce2bd2e3aa008c081c0a7d90341996518 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 24 Mar 2020 10:32:17 -0400 Subject: [PATCH] MPI: silence "avoid a deadlock" error message 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 3d7fe8b5e3..d0a62bc9bb 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -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 { -- 2.39.5