From: Augustin Degomme Date: Fri, 21 May 2021 10:37:39 +0000 (+0200) Subject: SMPI should not eat up all exceptions in wait/waitany simcalls silently X-Git-Tag: v3.28~265 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cb5f454f56e825bc82b74dd65b22a395ac754064 SMPI should not eat up all exceptions in wait/waitany simcalls silently It only deals with cancel ones --- 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; }