Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set this error added in 9d5b713b1 as a pedantic one, to allow ignoring it.
authorAugustin Degomme <adegomme@gmail.com>
Mon, 14 Jun 2021 12:10:19 +0000 (14:10 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Mon, 14 Jun 2021 12:10:19 +0000 (14:10 +0200)
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

index e361034..bebd6f8 100644 (file)
@@ -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;
   }