X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6c2c52a21d74a8c75d09d7e31e8f360ab9b1873d..46b43877f8d6dc3ee4c1f417eb1a2d20598dde7e:/src/smpi/colls/smpi_nbc_impl.cpp diff --git a/src/smpi/colls/smpi_nbc_impl.cpp b/src/smpi/colls/smpi_nbc_impl.cpp index 6c234e69d0..8a9e54e1f9 100644 --- a/src/smpi/colls/smpi_nbc_impl.cpp +++ b/src/smpi/colls/smpi_nbc_impl.cpp @@ -553,11 +553,9 @@ int Colls::iscan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, // Send/Recv buffers to/from others MPI_Request *requests = new MPI_Request[size - 1]; - void **tmpbufs = xbt_new(void *, rank); int index = 0; for (int other = 0; other < rank; other++) { - tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext); - requests[index] = Request::irecv_init(tmpbufs[index], count, datatype, other, system_tag, comm); + requests[index] = Request::irecv_init(smpi_get_tmp_sendbuffer(count * dataext), count, datatype, other, system_tag, comm); index++; } for (int other = rank + 1; other < size; other++) { @@ -585,11 +583,9 @@ int Colls::iexscan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatyp // Send/Recv buffers to/from others MPI_Request *requests = new MPI_Request[size - 1]; - void **tmpbufs = xbt_new(void *, rank); int index = 0; for (int other = 0; other < rank; other++) { - tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext); - requests[index] = Request::irecv_init(tmpbufs[index], count, datatype, other, system_tag, comm); + requests[index] = Request::irecv_init(smpi_get_tmp_sendbuffer(count * dataext), count, datatype, other, system_tag, comm); index++; } for (int other = rank + 1; other < size; other++) {