From cb5f454f56e825bc82b74dd65b22a395ac754064 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Fri, 21 May 2021 12:37:39 +0200 Subject: [PATCH] SMPI should not eat up all exceptions in wait/waitany simcalls silently It only deals with cancel ones --- src/smpi/mpi/smpi_request.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 5983c8017e..2057fd80b4 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -1007,7 +1007,7 @@ int Request::wait(MPI_Request * request, MPI_Status * status) try{ // this is not a detached send simcall_comm_wait((*request)->action_.get(), -1.0); - } catch (const Exception&) { + } catch (const CancelException&) { XBT_VERB("Request cancelled"); } } @@ -1075,7 +1075,7 @@ int Request::waitany(int count, MPI_Request requests[], MPI_Status * status) int i; try{ i = simcall_comm_waitany(comms.data(), comms.size(), -1); - } catch (const Exception&) { + } catch (const CancelException&) { XBT_INFO("request cancelled"); i = -1; } -- 2.20.1