From 87ff63372b9588e7b6ca2a1faaecebad660bf8c4 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 24 Jan 2018 14:36:23 +0100 Subject: [PATCH] [SMPI] smpi_win.cpp: Finish first local comms, as the DEBUG statement said. There was a confusion between rank and rank_ --- src/smpi/mpi/smpi_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index 7b3a4cc2ab..212f0f5c0d 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -635,9 +635,9 @@ int Win::unlock_all(){ int Win::flush(int rank){ MPI_Win target_win = connected_wins_[rank]; - int finished = finish_comms(rank); + int finished = finish_comms(rank_); XBT_DEBUG("Win_flush on local %d - Finished %d RMA calls", rank_, finished); - finished = target_win->finish_comms(rank_); + finished = target_win->finish_comms(rank); XBT_DEBUG("Win_flush on remote %d - Finished %d RMA calls", rank, finished); return MPI_SUCCESS; } -- 2.20.1