From 395fcc425374be5387f18f82df7fc39d9f6d9568 Mon Sep 17 00:00:00 2001 From: Aurelien Bouteiller Date: Thu, 18 Oct 2018 10:56:44 -0400 Subject: [PATCH] Disable inband PML error reporting during MPI Finalize as it interferes with the Finalize process. Signed-off-by: Aurelien Bouteiller --- ompi/mca/pml/ob1/pml_ob1.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ompi/mca/pml/ob1/pml_ob1.c b/ompi/mca/pml/ob1/pml_ob1.c index cc633e3a57..f38369bb83 100644 --- a/ompi/mca/pml/ob1/pml_ob1.c +++ b/ompi/mca/pml/ob1/pml_ob1.c @@ -3,7 +3,7 @@ * Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. - * Copyright (c) 2004-2018 The University of Tennessee and The University + * Copyright (c) 2004-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, @@ -817,6 +817,14 @@ void mca_pml_ob1_error_handler( return; } #endif /* OPAL_CUDA_SUPPORT */ + /* Some BTL report unreachable errors during normal MPI_Finalize + * termination. Lets simply ignore such errors after MPI is not supposed to + * be operational anyway. + */ + if(ompi_mpi_state >= OMPI_MPI_STATE_FINALIZE_PAST_COMM_SELF_DESTRUCT) { + return; + } + ompi_rte_abort(-1, btlinfo); }