Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add tesh files to test all new collectives
[simgrid.git] / src / smpi / colls / allreduce-redbcast.c
index c00fc2f..88d3561 100644 (file)
@@ -4,7 +4,7 @@ int smpi_coll_tuned_allreduce_redbcast(void *buf, void *buf2, int count,
                                        MPI_Datatype datatype, MPI_Op op,
                                        MPI_Comm comm)
 {
-  MPI_Reduce(buf, buf2, count, datatype, op, 0, comm);
-  MPI_Bcast(buf2, count, datatype, 0, comm);
-  return 0;
+  smpi_mpi_reduce(buf, buf2, count, datatype, op, 0, comm);
+  smpi_mpi_bcast(buf2, count, datatype, 0, comm);
+  return MPI_SUCCESS;
 }