]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/colls/alltoall-ring-mpi-barrier.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Length modifier 'l' is indeed wrong in %l[efg] for printf.
[simgrid.git] / src / smpi / colls / alltoall-ring-mpi-barrier.c
index e3a3f2da8f0d96a19203d46bafd90ed65e6cf6e0..469127abd88ef3f83f226e05293adb5525c27f71 100644 (file)
@@ -29,7 +29,7 @@ smpi_coll_tuned_alltoall_ring_mpi_barrier(void *send_buff, int send_count,
   MPI_Status s;
   MPI_Aint send_chunk, recv_chunk;
   int i, src, dst, rank, num_procs;
-  int tag = 1;
+  int tag = COLL_TAG_ALLTOALL;
 
   char *send_ptr = (char *) send_buff;
   char *recv_ptr = (char *) recv_buff;
@@ -46,7 +46,7 @@ smpi_coll_tuned_alltoall_ring_mpi_barrier(void *send_buff, int send_count,
     src = (rank - i + num_procs) % num_procs;
     dst = (rank + i) % num_procs;
 
-    smpi_mpi_barrier(comm);
+    mpi_coll_barrier_fun(comm);
     smpi_mpi_sendrecv(send_ptr + dst * send_chunk, send_count, send_type, dst,
                  tag, recv_ptr + src * recv_chunk, recv_count, recv_type,
                  src, tag, comm, &s);