Re-enable multi-rank PME tests (with the file race fixed in parent)
authorAleksei Iupinov <a.yupinov@gmail.com>
Fri, 12 Jan 2018 11:09:42 +0000 (12:09 +0100)
committerBerk Hess <hess@kth.se>
Thu, 18 Jan 2018 14:51:48 +0000 (15:51 +0100)
Also remove the MPI_Barrier call, which was the previous
attempt at fixing the issue.

Change-Id: I2deb6b77abe2b8719a8b4d50410e92427cbbbd85

src/programs/mdrun/tests/CMakeLists.txt
src/programs/mdrun/tests/pmetest.cpp

index 663fa9803c90256659cb16d40e45b071883eb2a1..c926529a7b85a3076b346ec91a7c6e6aaad67466 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
+# Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -38,6 +38,8 @@ add_library(mdrun_test_objlib OBJECT
     mdruncomparisonfixture.cpp
     moduletest.cpp
     terminationhelper.cpp
+    # PME tests
+    pmetest.cpp
     )
 
 set(testname "MdrunTests")
@@ -56,8 +58,6 @@ gmx_add_gtest_executable(
     swapcoords.cpp
     interactiveMD.cpp
     termination.cpp
-    # PME tests; FIXME: move this back into mdrun_test_objlib above and figure out the MPI race issue
-    pmetest.cpp
     # pseudo-library for code for testing mdrun
     $<TARGET_OBJECTS:mdrun_test_objlib>
     # pseudo-library for code for mdrun
index 5a8cc48b38189c0a9bc01678327b392821001580..36b3581a05de792cf0cb3a65070b8580ea456df4 100644 (file)
@@ -204,13 +204,6 @@ TEST_F(PmeTest, ReproducesEnergies)
                 }
             }
         }
-        // FIXME: without this barrier, one of the mdruns was somehow having a non-PME inputrec (!)
-#if GMX_LIB_MPI
-        if (parallelRun)
-        {
-            MPI_Barrier(MPI_COMM_WORLD);
-        }
-#endif
     }
 
     // This is a workaround for the output files to not be deleted in a parallel run.