Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix case where bcast is called with only one proc (and thus skipped)
authordegomme <adegomme@users.noreply.github.com>
Fri, 29 Mar 2019 10:38:05 +0000 (11:38 +0100)
committerdegomme <adegomme@users.noreply.github.com>
Fri, 29 Mar 2019 10:38:05 +0000 (11:38 +0100)
src/smpi/bindings/smpi_pmpi_coll.cpp

index 3a82044..91bbfd8 100644 (file)
@@ -70,6 +70,9 @@ int PMPI_Ibcast(void *buf, int count, MPI_Datatype datatype,
         simgrid::smpi::Colls::bcast(buf, count, datatype, root, comm);
       else
         simgrid::smpi::Colls::ibcast(buf, count, datatype, root, comm, request);
+    } else {
+      if(request!=MPI_REQUEST_IGNORED)
+        *request = MPI_REQUEST_NULL;
     }
     retval = MPI_SUCCESS;