From: Christian Heinrich Date: Mon, 19 Mar 2018 16:30:24 +0000 (+0100) Subject: [SMPI] Replay: Use the right buffer (c&p error?) X-Git-Tag: v3.20~600^2~43 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/64a11402f73a49312abcc8cb324a3c662dce926e?ds=sidebyside [SMPI] Replay: Use the right buffer (c&p error?) --- diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 1eb834cf7e..cab8ee5773 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -438,7 +438,7 @@ static void action_allReduce(const char *const *action) { TRACE_smpi_comm_in(my_proc_id, __FUNCTION__, new simgrid::instr::CollTIData("allReduce", -1, comp_size, comm_size, -1, MPI_CURRENT_TYPE->encode(), "")); - void *recvbuf = smpi_get_tmp_sendbuffer(comm_size* MPI_CURRENT_TYPE->size()); + void *recvbuf = smpi_get_tmp_recvbuffer(comm_size* MPI_CURRENT_TYPE->size()); void *sendbuf = smpi_get_tmp_sendbuffer(comm_size* MPI_CURRENT_TYPE->size()); Colls::allreduce(sendbuf, recvbuf, comm_size, MPI_CURRENT_TYPE, MPI_OP_NULL, MPI_COMM_WORLD); smpi_execute_flops(comp_size);