]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/colls/allreduce-NTS.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make fortran new bindings almost functional
[simgrid.git] / src / smpi / colls / allreduce-NTS.c
index a8cf48d0c8ee3b59c62cd0ae70492456f9f1c4a3..85c790b1f87a9837137ce736535a353515fcd0d6 100644 (file)
@@ -14,14 +14,14 @@ int
 smpi_coll_tuned_allreduce_NTS(void *sbuf, void *rbuf, int rcount,
                               MPI_Datatype dtype, MPI_Op op, MPI_Comm comm)
 {
-  int tag = 5000;
+  int tag = COLL_TAG_ALLREDUCE;
   MPI_Status status;
   int rank, i, size, count;
   int send_offset, recv_offset;
   int remainder, remainder_flag, remainder_offset;
 
-  rank = smpi_comm_rank(MPI_COMM_WORLD);
-  size = smpi_comm_size(MPI_COMM_WORLD);
+  rank = smpi_comm_rank(comm);
+  size = smpi_comm_size(comm);
 
   /* make it compatible with all data type */
   MPI_Aint extent;