Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
welcome simgrid::smpi::Request
[simgrid.git] / src / smpi / colls / allgatherv-ring.cpp
index 8ac68b7..120f0ce 100644 (file)
@@ -78,12 +78,12 @@ smpi_coll_tuned_allgatherv_ring(void *send_buff, int send_count,
   char *sendptr = (char *) send_buff;
   char *recvptr = (char *) recv_buff;
 
-  rank = smpi_comm_rank(comm);
-  num_procs = smpi_comm_size(comm);
+  rank = comm->rank();
+  num_procs = comm->size();
   extent = smpi_datatype_get_extent(send_type);
 
   // local send/recv
-  smpi_mpi_sendrecv(sendptr, send_count, send_type, rank, tag,
+  Request::sendrecv(sendptr, send_count, send_type, rank, tag,
                recvptr + recv_disps[rank] * extent,
                recv_counts[rank], recv_type, rank, tag, comm, &status);
 
@@ -91,7 +91,7 @@ smpi_coll_tuned_allgatherv_ring(void *send_buff, int send_count,
     src = (rank - i + num_procs) % num_procs;
     dst = (rank + i) % num_procs;
     
-    smpi_mpi_sendrecv(sendptr, send_count, send_type, dst, tag,
+    Request::sendrecv(sendptr, send_count, send_type, dst, tag,
                  recvptr + recv_disps[src] * extent, recv_counts[src], recv_type,
                  src, tag, comm, &status);
   }