Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use simgrid function instead of MPI in collectives
[simgrid.git] / src / smpi / colls / allreduce-redbcast.c
index c00fc2f..69c552d 100644 (file)
@@ -1,10 +1,10 @@
-#include "colls.h"
+#include "colls_private.h"
 
 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;
 }