ctest works with lam mpi
authorCezary Czaplewski <czarek@chem.univ.gda.pl>
Mon, 18 Apr 2016 12:56:38 +0000 (14:56 +0200)
committerCezary Czaplewski <czarek@chem.univ.gda.pl>
Mon, 18 Apr 2016 12:56:38 +0000 (14:56 +0200)
source/cluster/wham/src-M/CMakeLists.txt
source/cluster/wham/src/CMakeLists.txt
source/unres/src_MD-M/CMakeLists.txt
source/unres/src_MD/CMakeLists.txt
source/wham/src-M/CMakeLists.txt
source/wham/src/CMakeLists.txt

index f2bab4f..0293d15 100644 (file)
@@ -175,6 +175,15 @@ install(TARGETS UNRES_CLUSTER_WHAM_M_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}/clu
 # TESTS 
 #=========================================
 
+#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
+  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
+     MESSAGE (STATUS "LAM MPI library detected")
+     set (boot_lam "-boot")
+  else()
+     set (boot_lam "")
+  endif()
+
+
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/cluster_wham_mpi_E0LL2Y.sh
 "#!/bin/sh
 export POT=GB
@@ -206,7 +215,7 @@ export SIDEP=$DD/contact.3.parm
 export SCRATCHDIR=.
 #-----------------------------------------------------------------------------
 echo CTEST_FULL_OUTPUT
-mpiexec -np $2 $CLUSTER_WHAM_BIN 
+mpiexec ${boot_lam} -np $2 $CLUSTER_WHAM_BIN 
 ./cluster_wham_check.sh $1 
 ")
 
index 8669d33..49068c4 100644 (file)
@@ -176,6 +176,15 @@ install(TARGETS UNRES_CLUSTER_WHAM_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}/clust
 # TESTS 
 #=========================================
 
+#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
+  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
+     MESSAGE (STATUS "LAM MPI library detected")
+     set (boot_lam "-boot")
+  else()
+     set (boot_lam "")
+  endif()
+
+
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/cluster_wham_mpi_E0LL2Y.sh
 "#!/bin/sh
 export POT=GB
@@ -207,7 +216,7 @@ export SIDEP=$DD/contact.3.parm
 export SCRATCHDIR=.
 #-----------------------------------------------------------------------------
 echo CTEST_FULL_OUTPUT
-mpiexec -np $2 $CLUSTER_WHAM_BIN 
+mpiexec ${boot_lam} -np $2 $CLUSTER_WHAM_BIN 
 ./cluster_wham_check.sh $1 
 ")
 
index 28bdae4..ce09ea7 100644 (file)
@@ -505,6 +505,15 @@ $UNRES_BIN
 ./prota_unres_energy_check.sh $1 ${UNRES_BIN}
 ")
 
+#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
+  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
+     MESSAGE (STATUS "LAM MPI library detected")
+     set (boot_lam "-boot")
+  else()
+     set (boot_lam "")
+  endif()
+
+
 #
 # File permissions workaround
 #
@@ -537,7 +546,7 @@ export ROTPARPDB=$DD/scgauss.parm
 export PATTERN=$DD/patterns.cart
 #-----------------------------------------------------------------------------
 echo CTEST_FULL_OUTPUT
-mpiexec -np $3 $UNRES_BIN | grep -v traj1file
+mpiexec ${boot_lam} -np $3 $UNRES_BIN | grep -v traj1file
 ./prota_unres_energy_check.sh $1 ${UNRES_BIN}
 ")
 
@@ -581,13 +590,6 @@ if(NOT UNRES_WITH_MPI)
 
 else(NOT UNRES_WITH_MPI)
 
-#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
-  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
-     MESSAGE (STATUS "LAM MPI library detected")
-     set (boot_lam "-boot")
-  else()
-     set (boot_lam "")
-  endif()
 
   if(UNRES_MD_FF STREQUAL "GAB")
     add_test(NAME UNRES_M_MD_MPI_Ala10 COMMAND mpiexec ${boot_lam} ${CMAKE_CURRENT_BINARY_DIR}/test_single_ala.sh )
index e13e535..af38302 100644 (file)
@@ -482,6 +482,15 @@ FILE(      COPY ${CMAKE_CURRENT_BINARY_DIR}/scripts/test_prota_E0LL2Y.sh
        FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
 )
 
+#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
+  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
+     MESSAGE (STATUS "LAM MPI library detected")
+     set (boot_lam "-boot")
+  else()
+     set (boot_lam "")
+  endif()
+
+
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/test_mpi_E0LL2Y.sh
 "#!/bin/sh
 export POT=GB
@@ -506,7 +515,7 @@ export ROTPARPDB=$DD/scgauss.parm
 export PATTERN=$DD/patterns.cart
 #-----------------------------------------------------------------------------
 echo CTEST_FULL_OUTPUT
-mpiexec -np $3 $UNRES_BIN | grep -v traj1file
+mpiexec ${boot_lam} -np $3 $UNRES_BIN | grep -v traj1file
 ./prota_unres_energy_check.sh $1 ${UNRES_BIN}
 ")
 
@@ -545,13 +554,6 @@ if(NOT UNRES_WITH_MPI)
 
 else(NOT UNRES_WITH_MPI)
 
-#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
-  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
-     MESSAGE (STATUS "LAM MPI library detected")
-     set (boot_lam "-boot")
-  else()
-     set (boot_lam "")
-  endif()
 
   if(UNRES_MD_FF STREQUAL "GAB")
     add_test(NAME UNRES_MD_MPI_Ala10 COMMAND mpiexec ${boot_lam} ${CMAKE_CURRENT_BINARY_DIR}/test_single_ala.sh )
index 1a29d77..195e5df 100644 (file)
@@ -244,6 +244,15 @@ install(TARGETS UNRES_WHAM_M_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}/wham)
 # TESTS 
 #=========================================
 
+#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
+  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
+     MESSAGE (STATUS "LAM MPI library detected")
+     set (boot_lam "-boot")
+  else()
+     set (boot_lam "")
+  endif()
+
+
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/wham_mpi_E0LL2Y.sh
 "#!/bin/sh
 export POT=GB
@@ -270,7 +279,7 @@ export SIDEP=$DD/contact.3.parm
 export SCRATCHDIR=.
 #-----------------------------------------------------------------------------
 echo CTEST_FULL_OUTPUT
-mpiexec -np $2 $WHAM_BIN 
+mpiexec ${boot_lam} -np $2 $WHAM_BIN 
 ./wham_check.sh $1 
 ")
 
index 5635fc7..b58dda7 100644 (file)
@@ -244,6 +244,15 @@ install(TARGETS UNRES_WHAM_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}/wham)
 # TESTS 
 #=========================================
 
+#  MESSAGE (STATUS "${MPI_Fortran_LIBRARIES}")
+  if ("${MPI_Fortran_LIBRARIES}"  MATCHES "lam")
+     MESSAGE (STATUS "LAM MPI library detected")
+     set (boot_lam "-boot")
+  else()
+     set (boot_lam "")
+  endif()
+
+
 FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/wham_mpi_E0LL2Y.sh
 "#!/bin/sh
 export POT=GB
@@ -270,7 +279,7 @@ export SIDEP=$DD/contact.3.parm
 export SCRATCHDIR=.
 #-----------------------------------------------------------------------------
 echo CTEST_FULL_OUTPUT
-mpiexec -np $2 $WHAM_BIN 
+mpiexec ${boot_lam} -np $2 $WHAM_BIN 
 ./wham_check.sh $1 
 ")