From 8f9cfe192c534db5cd9c4066ada3c896445009fa Mon Sep 17 00:00:00 2001 From: degomme Date: Mon, 3 Apr 2017 14:35:19 +0200 Subject: [PATCH] close the window if we explicitely tell it's closed --- src/smpi/smpi_win.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/smpi/smpi_win.cpp b/src/smpi/smpi_win.cpp index 59ce7600c1..ce5db55b1a 100644 --- a/src/smpi/smpi_win.cpp +++ b/src/smpi/smpi_win.cpp @@ -173,6 +173,9 @@ int Win::fence(int assert) count_=0; xbt_mutex_release(mut_); } + + if(assert==MPI_MODE_NOSUCCEED)//there should be no ops after this one, tell we are closed. + opened_=0; assert_ = assert; MSG_barrier_wait(bar_); -- 2.20.1