From: Augustin Degomme Date: Mon, 13 May 2019 08:25:39 +0000 (+0200) Subject: add some debug messages to MPI_Testany X-Git-Tag: v3.22.4~127^2~38 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/988d1c47d500a2dbeb914f703a8ce88e51336bd1 add some debug messages to MPI_Testany --- diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 7af734bc02..f0a08cc644 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -640,6 +640,7 @@ int Request::testany(int count, MPI_Request requests[], int *index, int* flag, M try{ i = simcall_comm_testany(comms.data(), comms.size()); // The i-th element in comms matches! } catch (const xbt_ex&) { + XBT_DEBUG("Exception in testany"); return 0; } @@ -666,6 +667,7 @@ int Request::testany(int count, MPI_Request requests[], int *index, int* flag, M if (requests[*index] != MPI_REQUEST_NULL && (requests[*index]->flags_ & MPI_REQ_NON_PERSISTENT)) requests[*index] = MPI_REQUEST_NULL; + XBT_DEBUG("Testany - returning with index %d", *index); *flag=1; } nsleeps = 1; @@ -673,8 +675,10 @@ int Request::testany(int count, MPI_Request requests[], int *index, int* flag, M nsleeps++; } } else { + XBT_DEBUG("Testany on inactive handles, returning flag=1 but empty status"); //all requests are null or inactive, return true *flag = 1; + *index = MPI_UNDEFINED; Status::empty(status); }