Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Replay: Use the right buffer (c&p error?)
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Mon, 19 Mar 2018 16:30:24 +0000 (17:30 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 28 Mar 2018 15:31:40 +0000 (17:31 +0200)
src/smpi/internals/smpi_replay.cpp

index 1eb834c..cab8ee5 100644 (file)
@@ -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);