From 598c2d5bfd5aec608fb0b892be7f840152194168 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 14 Jun 2021 14:10:19 +0200 Subject: [PATCH] set this error added in 9d5b713b1 as a pedantic one, to allow ignoring it. Rationale : we don't really know if it's actually an error, and read2shmem code triggers it in proxy apps. --- src/smpi/bindings/smpi_pmpi_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/bindings/smpi_pmpi_win.cpp b/src/smpi/bindings/smpi_pmpi_win.cpp index e36103458e..bebd6f8aac 100644 --- a/src/smpi/bindings/smpi_pmpi_win.cpp +++ b/src/smpi/bindings/smpi_pmpi_win.cpp @@ -99,7 +99,7 @@ int PMPI_Win_detach(MPI_Win win, const void* base) int PMPI_Win_free( MPI_Win* win){ CHECK_NULL(1, MPI_ERR_WIN, win) CHECK_WIN(1, (*win)) - if ((*win)->opened() == 1){ + if (_smpi_cfg_pedantic && (*win)->opened() == 1){//only check in pedantic mode, as it's not clear this is illegal XBT_WARN("Attempt to destroy a MPI_Win too early -missing MPI_Win_fence ?"); return MPI_ERR_WIN; } -- 2.20.1