X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Fcluster%2Fwham%2Fsrc%2FCMakeLists.txt;h=758582dfc11c4084d8562780a7bfa5881c0405fa;hb=d3d989108f2d77732ef9ae4b6d0594ca94b3b25f;hp=8669d33f6dfa2ecf58c18fe5196a60abd985cca0;hpb=939635f0f3a74bd9a50630637a5bef980f3a0052;p=unres.git diff --git a/source/cluster/wham/src/CMakeLists.txt b/source/cluster/wham/src/CMakeLists.txt index 8669d33..758582d 100644 --- a/source/cluster/wham/src/CMakeLists.txt +++ b/source/cluster/wham/src/CMakeLists.txt @@ -60,14 +60,14 @@ set(UNRES_CLUSTER_WHAM_PP_SRC #================================================ -# Set comipiler flags for different sourcefiles +# Set compiler flags for different sourcefiles #================================================ if (Fortran_COMPILER_NAME STREQUAL "ifort") set(FFLAGS0 "-mcmodel=medium -shared-intel -ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) elseif (Fortran_COMPILER_NAME STREQUAL "gfortran") - set(FFLAGS0 "-std=legacy -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) + set(FFLAGS0 "-std=legacy -mcmodel=medium -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) else () - set(FFLAGS0 "-I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) + set(FFLAGS0 "-mcmodel=medium -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) endif (Fortran_COMPILER_NAME STREQUAL "ifort") #========================================= @@ -176,6 +176,25 @@ 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() + + if (UNRES_SRUN) + set (np "-n") + set (mpiexec "srun") + elseif(UNRES_MPIRUN) + set (np "-np") + set (mpiexec "mpirun") + else() + set (np "-np") + set (mpiexec "mpiexec") + endif() + FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/scripts/cluster_wham_mpi_E0LL2Y.sh "#!/bin/sh export POT=GB @@ -207,7 +226,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 ")