Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix case where bcast is called with only one proc (and thus skipped)
[simgrid.git] / 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;