X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e43c615b2475d0174be55f95f930ca30988279e..c9985132b008956a7a36fc3b1890aeebd9caa080:/src/smpi/colls/alltoall-ring.cpp diff --git a/src/smpi/colls/alltoall-ring.cpp b/src/smpi/colls/alltoall-ring.cpp index b87117378f..34138e811a 100644 --- a/src/smpi/colls/alltoall-ring.cpp +++ b/src/smpi/colls/alltoall-ring.cpp @@ -41,8 +41,8 @@ smpi_coll_tuned_alltoall_ring(void *send_buff, int send_count, rank = comm->rank(); num_procs = comm->size(); - send_chunk = smpi_datatype_get_extent(send_type); - recv_chunk = smpi_datatype_get_extent(recv_type); + send_chunk = send_type->get_extent(); + recv_chunk = recv_type->get_extent(); send_chunk *= send_count; recv_chunk *= recv_count; @@ -51,7 +51,7 @@ smpi_coll_tuned_alltoall_ring(void *send_buff, int send_count, src = (rank - i + num_procs) % num_procs; dst = (rank + i) % num_procs; - smpi_mpi_sendrecv(send_ptr + dst * send_chunk, send_count, send_type, dst, + Request::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); }