Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure correct ordering of the accumulate requests.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Jun 2021 13:34:01 +0000 (15:34 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Jun 2021 13:48:35 +0000 (15:48 +0200)
src/smpi/mpi/smpi_win.cpp

index bd2d17d..8eebb21 100644 (file)
@@ -337,6 +337,9 @@ int Win::accumulate(const void *origin_addr, int origin_count, MPI_Datatype orig
     mut_->unlock();
   }
 
+  // FIXME: The current implementation fails to ensure the correct ordering of the accumulate requests.  The following
+  // 'flush' is a workaround to fix that.
+  flush(target_rank);
   XBT_DEBUG("Leaving MPI_Win_Accumulate");
   return MPI_SUCCESS;
 }