From: Augustin Degomme Date: Sun, 4 Apr 2021 15:11:09 +0000 (+0200) Subject: check ranks for probes/iprobes X-Git-Tag: v3.28~463 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ae5fa1c661aa1932e0014423c2fc9390e597985c check ranks for probes/iprobes --- diff --git a/src/smpi/bindings/smpi_pmpi_request.cpp b/src/smpi/bindings/smpi_pmpi_request.cpp index 91984f91e3..14d2bd200b 100644 --- a/src/smpi/bindings/smpi_pmpi_request.cpp +++ b/src/smpi/bindings/smpi_pmpi_request.cpp @@ -547,6 +547,8 @@ int PMPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status* status) { smpi_bench_end(); CHECK_COMM(6) + if(source!=MPI_ANY_SOURCE && source!=MPI_PROC_NULL)\ + CHECK_RANK(1, source, comm) CHECK_TAG(2, tag) if (source == MPI_PROC_NULL) { if (status != MPI_STATUS_IGNORE){ @@ -566,6 +568,8 @@ int PMPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* statu int retval = 0; smpi_bench_end(); CHECK_COMM(6) + if(source!=MPI_ANY_SOURCE && source!=MPI_PROC_NULL)\ + CHECK_RANK(1, source, comm) CHECK_TAG(2, tag) if (flag == nullptr) { retval = MPI_ERR_ARG;