diff --git a/CMake/macros.cmake b/CMake/macros.cmake index 0d6f0087c..84562572f 100644 --- a/CMake/macros.cmake +++ b/CMake/macros.cmake @@ -102,7 +102,9 @@ FUNCTION( RUN_QMC_APP_NO_COPY TESTNAME WORKDIR PROCS THREADS TEST_ADDED TEST_LAB SET( TEST_ADDED_TEMP FALSE ) IF ( USE_MPI ) IF ( ${TOT_PROCS} GREATER ${TEST_MAX_PROCS} ) - MESSAGE("Disabling test ${TESTNAME} (exceeds maximum number of processors ${TEST_MAX_PROCS})") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Disabling test ${TESTNAME} (exceeds maximum number of processors ${TEST_MAX_PROCS})") + ENDIF() ELSEIF ( USE_MPI ) ADD_TEST( ${TESTNAME} ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${PROCS} ${QMC_APP} ${ARGN} ) SET_TESTS_PROPERTIES( ${TESTNAME} PROPERTIES FAIL_REGULAR_EXPRESSION "${TEST_FAIL_REGULAR_EXPRESSION}" @@ -118,7 +120,9 @@ FUNCTION( RUN_QMC_APP_NO_COPY TESTNAME WORKDIR PROCS THREADS TEST_ADDED TEST_LAB ENVIRONMENT OMP_NUM_THREADS=${THREADS} ) SET( TEST_ADDED_TEMP TRUE ) ELSE() - MESSAGE("Disabling test ${TESTNAME} (building without MPI)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Disabling test ${TESTNAME} (building without MPI)") + ENDIF() ENDIF() ENDIF() SET(TEST_LABELS_TEMP "") @@ -170,7 +174,9 @@ FUNCTION(QMC_RUN_AND_CHECK BASE_NAME BASE_DIR PREFIX INPUT_FILE PROCS THREADS SH SET( TEST_ADDED FALSE ) SET( TEST_LABELS "") SET( FULL_NAME "${BASE_NAME}-${PROCS}-${THREADS}" ) - MESSAGE("Adding test ${FULL_NAME}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${FULL_NAME}") + ENDIF() RUN_QMC_APP(${FULL_NAME} ${BASE_DIR} ${PROCS} ${THREADS} TEST_ADDED TEST_LABELS ${INPUT_FILE}) IF ( TEST_ADDED ) SET_PROPERTY(TEST ${FULL_NAME} APPEND PROPERTY LABELS "QMCPACK") @@ -244,7 +250,9 @@ function(SIMPLE_RUN_AND_CHECK base_name base_dir input_file procs threads check_ # build test name set(full_name "${base_name}-${procs}-${threads}") - message("Adding test ${full_name}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${full_name}") + ENDIF() # add run (task 1) set (test_added false) diff --git a/CMake/run_qe.cmake b/CMake/run_qe.cmake index d153aedbb..e3f10ff12 100644 --- a/CMake/run_qe.cmake +++ b/CMake/run_qe.cmake @@ -16,7 +16,9 @@ FUNCTION( RUN_QE_TEST BASE_NAME SRC_DIR PROCS1 PROCS2 PROCS3 NPOOL1 NPOOL2 NPOOL SET( FULL_NAME ${BASE_NAME}-np-${PROCS1}-${PROCS2}-${PROCS3}-nk-${NPOOL1}-${NPOOL2}-${NPOOL3} ) SET( ${TEST_NAME} ${FULL_NAME} PARENT_SCOPE) SET( MY_WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/${FULL_NAME} ) - MESSAGE("Adding test ${FULL_NAME}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${FULL_NAME}") + ENDIF() COPY_DIRECTORY( "${SRC_DIR}" "${MY_WORKDIR}" ) ADD_QE_TEST(${FULL_NAME}-scf ${PROCS1} ${QE_BIN}/pw.x ${NPOOL1} ${MY_WORKDIR} ${TEST_INPUT_PREFIX}-scf.in ) IF(PROCS2 EQUAL 0) diff --git a/CMake/unit_test.cmake b/CMake/unit_test.cmake index 741dcd09e..f21faf274 100644 --- a/CMake/unit_test.cmake +++ b/CMake/unit_test.cmake @@ -3,7 +3,9 @@ INCLUDE("${PROJECT_SOURCE_DIR}/CMake/test_labels.cmake") # Runs unit tests FUNCTION( ADD_UNIT_TEST TESTNAME TEST_BINARY ) - MESSAGE("Adding test ${TESTNAME}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${TESTNAME}") + ENDIF() IF ( USE_MPI ) ADD_TEST(NAME ${TESTNAME} COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 1 ${TEST_BINARY} ${ARGN}) #SET_TESTS_PROPERTIES( ${TESTNAME} PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1 ) diff --git a/CMakeLists.txt b/CMakeLists.txt index c33fcbd03..349d53b92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,8 @@ IF(ENABLE_CUDA AND QMC_CUDA) MESSAGE(FATAL_ERROR "ENABLE_CUDA=1 and QMC_CUDA=1 can not be set together!") ENDIF(ENABLE_CUDA AND QMC_CUDA) +SET(QMC_VERBOSE_TEST_CONFIGURATION 0 CACHE BOOL "Give details why specific tests are/are not added") + ###################################################################### # set debug printout # DEBUG_PSIBUFFER_ON keep track buffer's locator diff --git a/nexus/tests/CMakeLists.txt b/nexus/tests/CMakeLists.txt index 5f2c4b0e9..d7bdb3823 100644 --- a/nexus/tests/CMakeLists.txt +++ b/nexus/tests/CMakeLists.txt @@ -12,7 +12,7 @@ if (ADD_TEST) EXECUTE_PROCESS(COMMAND ${PROJECT_SOURCE_DIR}/nexus/bin/nxs-test --ctestlist OUTPUT_VARIABLE TESTLIST) #MESSAGE(" Nexus tests: ${TESTLIST}") FOREACH(TESTNAME ${TESTLIST}) - message("Adding test ntest_nexus_${TESTNAME}") + #message("Adding test ntest_nexus_${TESTNAME}") set(NTEST "${qmcpack_SOURCE_DIR}/nexus/bin/nxs-test") add_test(NAME ntest_nexus_${TESTNAME} COMMAND ${NTEST} -R ${TESTNAME} --ctest --pythonpath=${PROJECT_SOURCE_DIR}/nexus/lib) set_property(TEST ntest_nexus_${TESTNAME} APPEND PROPERTY LABELS "nexus") diff --git a/src/AFQMC/Matrix/tests/CMakeLists.txt b/src/AFQMC/Matrix/tests/CMakeLists.txt index b9a2adf42..952bc0650 100644 --- a/src/AFQMC/Matrix/tests/CMakeLists.txt +++ b/src/AFQMC/Matrix/tests/CMakeLists.txt @@ -9,8 +9,9 @@ #// File created by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign #////////////////////////////////////////////////////////////////////////////////////// -MESSAGE("Adding this unit test") - +IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding AFQMC matrix unit tests") +ENDIF() SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QMCPACK_UNIT_TEST_DIR}) diff --git a/src/AFQMC/Numerics/tests/CMakeLists.txt b/src/AFQMC/Numerics/tests/CMakeLists.txt index b35fc833f..3bc6e39db 100644 --- a/src/AFQMC/Numerics/tests/CMakeLists.txt +++ b/src/AFQMC/Numerics/tests/CMakeLists.txt @@ -9,8 +9,9 @@ #// File created by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign #////////////////////////////////////////////////////////////////////////////////////// -MESSAGE("Adding this unit test") - +IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding AFQMC numerics unit tests") +ENDIF() SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QMCPACK_UNIT_TEST_DIR}) diff --git a/src/AFQMC/SlaterDeterminantOperations/tests/CMakeLists.txt b/src/AFQMC/SlaterDeterminantOperations/tests/CMakeLists.txt index 846166797..28cf14153 100644 --- a/src/AFQMC/SlaterDeterminantOperations/tests/CMakeLists.txt +++ b/src/AFQMC/SlaterDeterminantOperations/tests/CMakeLists.txt @@ -9,7 +9,9 @@ #// File created by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign #////////////////////////////////////////////////////////////////////////////////////// -MESSAGE("Adding this unit test") +IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding AFQMC Slater Determinant Operations unit tests") +ENDIF() SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QMCPACK_UNIT_TEST_DIR}) diff --git a/src/AFQMC/Walkers/tests/CMakeLists.txt b/src/AFQMC/Walkers/tests/CMakeLists.txt index 6df4526d7..24549b4ba 100644 --- a/src/AFQMC/Walkers/tests/CMakeLists.txt +++ b/src/AFQMC/Walkers/tests/CMakeLists.txt @@ -9,7 +9,9 @@ #// File created by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign #////////////////////////////////////////////////////////////////////////////////////// -MESSAGE("Adding test test_sharedwset") +IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test test_sharedwset") +ENDIF() SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QMCPACK_UNIT_TEST_DIR}) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a45460527..cafbc6edb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,8 @@ +MESSAGE(STATUS "Creating integration tests for QMCPACK") +IF ( NOT QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Set QMC_VERBOSE_TEST_CONFIGURATION=1 for details of which tests will be enabled.") +ENDIF() + SUBDIRS(converter) SUBDIRS(estimator) SUBDIRS(models) @@ -7,6 +12,8 @@ SUBDIRS(performance) IF(QE_BIN) MESSAGE(STATUS "QE binary path ${QE_BIN}") SUBDIRS(pw2qmcpack) +ELSE() + MESSAGE("QE_BIN is not set. Tests of pw2qmcpack and QE/PWSCF will not be performed.") ENDIF() message("Adding system tests for QMCPACK") diff --git a/tests/heg/heg_14_gamma/CMakeLists.txt b/tests/heg/heg_14_gamma/CMakeLists.txt index f1ac37b7c..15c063a63 100644 --- a/tests/heg/heg_14_gamma/CMakeLists.txt +++ b/tests/heg/heg_14_gamma/CMakeLists.txt @@ -267,10 +267,14 @@ IF (NOT QMC_COMPLEX) ) ELSE() - MESSAGE("Skipping HEG backflow tests because they are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping HEG backflow tests because they are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping all HEG tests because they are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping all HEG tests because they are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/io/CMakeLists.txt b/tests/io/CMakeLists.txt index 1ae6db005..3985382ff 100644 --- a/tests/io/CMakeLists.txt +++ b/tests/io/CMakeLists.txt @@ -13,7 +13,9 @@ function(RUN_RESTART_AND_CHECK base_name base_dir input_file procs threads check # build test name set(full_name "${base_name}-${procs}-${threads}") - message("Adding test ${full_name}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + message("Adding test ${full_name}") + ENDIF() # add run (task 1) set (test_added false) diff --git a/tests/molecules/C2_pp/CMakeLists.txt b/tests/molecules/C2_pp/CMakeLists.txt index 18d98609c..99c4bd8dc 100644 --- a/tests/molecules/C2_pp/CMakeLists.txt +++ b/tests/molecules/C2_pp/CMakeLists.txt @@ -82,8 +82,12 @@ IF (NOT QMC_CUDA) ) ELSE() - MESSAGE("Skipping C2_pp tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping C2_pp tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping C2_pp tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping C2_pp tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/CHN_ae/CMakeLists.txt b/tests/molecules/CHN_ae/CMakeLists.txt index 0f159a19b..50a683982 100644 --- a/tests/molecules/CHN_ae/CMakeLists.txt +++ b/tests/molecules/CHN_ae/CMakeLists.txt @@ -26,11 +26,17 @@ IF(ENABLE_SOA) ) ELSE() - MESSAGE("Skipping CuspCorrection tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping CuspCorrection tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping CuspCorrection tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping CuspCorrection tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping CuspCorrection tests for AOS build (ENABLE_SOA=0)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping CuspCorrection tests for AOS build (ENABLE_SOA=0)") + ENDIF() ENDIF() diff --git a/tests/molecules/C_NO_ae/CMakeLists.txt b/tests/molecules/C_NO_ae/CMakeLists.txt index 2b312d41a..9fe8aab50 100644 --- a/tests/molecules/C_NO_ae/CMakeLists.txt +++ b/tests/molecules/C_NO_ae/CMakeLists.txt @@ -67,9 +67,13 @@ IF (NOT QMC_CUDA) ) ELSE() - MESSAGE("Skipping C_NO_ae tests because the basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping C_NO_ae tests because the basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping C_NO_ae tests because the basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping C_NO_ae tests because the basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/FeCO6_b3lyp_gms/CMakeLists.txt b/tests/molecules/FeCO6_b3lyp_gms/CMakeLists.txt index 78930a3f1..aaad9f42c 100644 --- a/tests/molecules/FeCO6_b3lyp_gms/CMakeLists.txt +++ b/tests/molecules/FeCO6_b3lyp_gms/CMakeLists.txt @@ -36,9 +36,13 @@ IF (NOT QMC_CUDA) ) ELSE() - MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/FeCO6_b3lyp_pyscf/CMakeLists.txt b/tests/molecules/FeCO6_b3lyp_pyscf/CMakeLists.txt index 002d16b63..1d12dd54d 100644 --- a/tests/molecules/FeCO6_b3lyp_pyscf/CMakeLists.txt +++ b/tests/molecules/FeCO6_b3lyp_pyscf/CMakeLists.txt @@ -37,9 +37,13 @@ IF (NOT QMC_CUDA) ) ELSE() - MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping FeCO6_b3lyp_gms tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/H2O_dimer_sep_pp/CMakeLists.txt b/tests/molecules/H2O_dimer_sep_pp/CMakeLists.txt index 98c306536..ba3262e84 100644 --- a/tests/molecules/H2O_dimer_sep_pp/CMakeLists.txt +++ b/tests/molecules/H2O_dimer_sep_pp/CMakeLists.txt @@ -102,9 +102,13 @@ IF (NOT QMC_CUDA) ) ELSE() - MESSAGE("Skipping H2O_dimer_sep_pp tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H2O_dimer_sep_pp tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping H2O_dimer_sep_pp tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H2O_dimer_sep_pp tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/H2_ae/CMakeLists.txt b/tests/molecules/H2_ae/CMakeLists.txt index 9b852ea35..0f30963cd 100644 --- a/tests/molecules/H2_ae/CMakeLists.txt +++ b/tests/molecules/H2_ae/CMakeLists.txt @@ -33,12 +33,18 @@ IF (NOT QMC_CUDA) 6 H2_FDLR_SCALARS # Final VMC step TRUE) ELSE() - MESSAGE("Skipping H4_FDLR test because lmyengine interface was not built (BUILD_LMYENGINE_INTERFACE=0)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_FDLR test because lmyengine interface was not built (BUILD_LMYENGINE_INTERFACE=0)") + ENDIF() ENDIF(BUILD_LMYENGINE_INTERFACE) ELSE() - MESSAGE("Skipping H4_FDLR tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_FDLR tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping H4_FDLR tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_FDLR tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/H4_ae/CMakeLists.txt b/tests/molecules/H4_ae/CMakeLists.txt index f87de8422..341876d7e 100644 --- a/tests/molecules/H4_ae/CMakeLists.txt +++ b/tests/molecules/H4_ae/CMakeLists.txt @@ -164,9 +164,13 @@ IF (NOT QMC_CUDA) 5 H4_OPT_SCALARS # OPT step 5 ) ELSE() - MESSAGE("Skipping H4_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping H4_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/H4_msd_ae/CMakeLists.txt b/tests/molecules/H4_msd_ae/CMakeLists.txt index 60c3b9c04..e15fc5324 100644 --- a/tests/molecules/H4_msd_ae/CMakeLists.txt +++ b/tests/molecules/H4_msd_ae/CMakeLists.txt @@ -17,9 +17,13 @@ IF (NOT QMC_CUDA) 4 H4_MSD_ORB_OPT_SCALARS # OPT step 4 ) ELSE() - MESSAGE("Skipping H4_msd_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_msd_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping H4_msd_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping H4_msd_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/Li2_STO_ae/CMakeLists.txt b/tests/molecules/Li2_STO_ae/CMakeLists.txt index 619d53cb5..9ff7b3e20 100644 --- a/tests/molecules/Li2_STO_ae/CMakeLists.txt +++ b/tests/molecules/Li2_STO_ae/CMakeLists.txt @@ -49,9 +49,13 @@ IF (NOT QMC_CUDA) ) ELSE() - MESSAGE("Skipping Li2_STO_ae tests because the basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping Li2_STO_ae tests because the basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping Li2_STO_ae tests because the basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping Li2_STO_ae tests because the basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/LiH_ae_MSD/CMakeLists.txt b/tests/molecules/LiH_ae_MSD/CMakeLists.txt index 7d8e02320..80ac0c362 100644 --- a/tests/molecules/LiH_ae_MSD/CMakeLists.txt +++ b/tests/molecules/LiH_ae_MSD/CMakeLists.txt @@ -122,12 +122,18 @@ LIST(APPEND LiH_ae_MSD_OPT_CI_SCALARS "ionion" "0.995380119260 0.001000000000") ) ELSE() - MESSAGE("Skipping LiH_ae_MSD tests because gaussian basis with HDF5 support are not supported by AoS build (ENABLE_SOA=0)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_ae_MSD tests because gaussian basis with HDF5 support are not supported by AoS build (ENABLE_SOA=0)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping LiH_ae_MSD tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_ae_MSD tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping LiH_ae_MSD tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_ae_MSD tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/LiH_dimer_ae_gms/CMakeLists.txt b/tests/molecules/LiH_dimer_ae_gms/CMakeLists.txt index 4dabe4f74..df95dd951 100644 --- a/tests/molecules/LiH_dimer_ae_gms/CMakeLists.txt +++ b/tests/molecules/LiH_dimer_ae_gms/CMakeLists.txt @@ -59,9 +59,13 @@ IF (NOT QMC_CUDA) endif() ELSE() - MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/LiH_dimer_ae_pyscf/CMakeLists.txt b/tests/molecules/LiH_dimer_ae_pyscf/CMakeLists.txt index 27f4516cf..c2568f527 100644 --- a/tests/molecules/LiH_dimer_ae_pyscf/CMakeLists.txt +++ b/tests/molecules/LiH_dimer_ae_pyscf/CMakeLists.txt @@ -39,9 +39,13 @@ IF (NOT QMC_CUDA) ELSE() - MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/LiH_dimer_ae_qp/CMakeLists.txt b/tests/molecules/LiH_dimer_ae_qp/CMakeLists.txt index d6eff71ea..c6ce33554 100644 --- a/tests/molecules/LiH_dimer_ae_qp/CMakeLists.txt +++ b/tests/molecules/LiH_dimer_ae_qp/CMakeLists.txt @@ -40,9 +40,13 @@ IF (NOT QMC_CUDA) ELSE() - MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_ae tests because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/molecules/LiH_dimer_pp/CMakeLists.txt b/tests/molecules/LiH_dimer_pp/CMakeLists.txt index 364d90bf9..e70d61677 100644 --- a/tests/molecules/LiH_dimer_pp/CMakeLists.txt +++ b/tests/molecules/LiH_dimer_pp/CMakeLists.txt @@ -230,9 +230,13 @@ ENDIF() endif() ELSE() - MESSAGE("Skipping LiH_dimer_pp test because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_pp test because gaussian basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping LiH_dimer_pp test because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping LiH_dimer_pp test because gaussian basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/performance/C-graphite/CMakeLists.txt b/tests/performance/C-graphite/CMakeLists.txt index 84c5466bf..0febf2a71 100644 --- a/tests/performance/C-graphite/CMakeLists.txt +++ b/tests/performance/C-graphite/CMakeLists.txt @@ -5,7 +5,9 @@ # QMC_DATA - C-graphite subdirectory should contain the *.h5 files FUNCTION(ADD_C_GRAPHITE_TEST TEST_NAME TEST_DIR INPUT_FILE H5_FILE) - MESSAGE("Adding test ${TEST_NAME}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${TEST_NAME}") + ENDIF() SET (WDIR "${qmcpack_BINARY_DIR}/tests/performance/C-graphite/${TEST_DIR}") SET (SDIR "${CMAKE_SOURCE_DIR}/tests/performance/C-graphite/sample/${TEST_DIR}") @@ -49,7 +51,9 @@ FUNCTION(ADD_C_GRAPHITE_TEST TEST_NAME TEST_DIR INPUT_FILE H5_FILE) ENDFUNCTION() IF (NOT QMC_DATA) - MESSAGE("QMC_DATA not set. Performance tests not added.") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("QMC_DATA not set. Performance tests not added.") + ENDIF() ELSEIF(NOT EXISTS ${QMC_DATA}/C-graphite) MESSAGE("C-graphite directory under QMC_DATA does not exist. C-graphite performance tests not added.") ELSE() diff --git a/tests/performance/C-molecule/CMakeLists.txt b/tests/performance/C-molecule/CMakeLists.txt index 115fd5d95..5e19e7c0f 100644 --- a/tests/performance/C-molecule/CMakeLists.txt +++ b/tests/performance/C-molecule/CMakeLists.txt @@ -7,7 +7,9 @@ IF (NOT QMC_CUDA) IF (NOT QMC_COMPLEX) FUNCTION(ADD_C_MOLECULE_TEST TEST_NAME TEST_DIR TEST_SOURCE_DIR INPUT_FILE H5_FILE ADJUST_INPUT) - MESSAGE("Adding test ${TEST_NAME}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${TEST_NAME}") + ENDIF() SET (WDIR "${qmcpack_BINARY_DIR}/tests/performance/C-molecule/${TEST_DIR}") SET (SDIR "${CMAKE_SOURCE_DIR}/tests/performance/C-molecule/sample/${TEST_SOURCE_DIR}") @@ -55,7 +57,9 @@ IF (NOT QMC_CUDA) ENDFUNCTION() IF (NOT QMC_DATA) - MESSAGE("QMC_DATA not set. Performance tests not added.") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("QMC_DATA not set. Performance tests not added.") + ENDIF() ELSEIF(NOT EXISTS ${QMC_DATA}/C-molecule) MESSAGE("C-molecule directory under QMC_DATA does not exist. C-molecule performance tests not added.") ELSE() @@ -68,7 +72,9 @@ IF (NOT QMC_CUDA) LIST(REMOVE_ITEM C_SIZES ${SIZE}) ENDIF() ENDFOREACH() - MESSAGE("C-molecule sizes to benchmark: ${C_SIZES}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("C-molecule sizes to benchmark: ${C_SIZES}") + ENDIF() ENDIF() SET(ADJUST_INPUT "-i") @@ -99,16 +105,22 @@ IF (NOT QMC_CUDA) SET(TEST_DIR dmc-C${ATOM_COUNT}-e${ELECTRON_COUNT}-${POTENTIAL_TYPE}-J3) ADD_C_MOLECULE_TEST(${PERF_TEST} ${TEST_DIR} ${TEST_SOURCE_DIR} ${INPUT_FILE} ${H5_FILE} "${ADJUST_INPUT} -j ${TEST_DIR}/J123.xml") ELSEIF(NOT (SIZE MATCHES "60" AND POTENTIAL_TYPE MATCHES "ae")) - MESSAGE("performance-C-molecule-C${ATOM_COUNT}-e${ELECTRON_COUNT} not added because the corresponding h5 file not found: ${H5_FULL_PATH}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("performance-C-molecule-C${ATOM_COUNT}-e${ELECTRON_COUNT} not added because the corresponding h5 file not found: ${H5_FULL_PATH}") + ENDIF() ENDIF() ENDFOREACH() ENDFOREACH() ENDIF() ELSE() - MESSAGE("Skipping C-molecule performance tests because the basis sets are not supported by complex build (QMC_COMPLEX=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping C-molecule performance tests because the basis sets are not supported by complex build (QMC_COMPLEX=1)") + ENDIF() ENDIF() ELSE() - MESSAGE("Skipping C-molecule performance tests because the basis sets are not supported by CUDA build (QMC_CUDA=1)") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Skipping C-molecule performance tests because the basis sets are not supported by CUDA build (QMC_CUDA=1)") + ENDIF() ENDIF() diff --git a/tests/performance/CMakeLists.txt b/tests/performance/CMakeLists.txt index 44a230b9d..168d092e1 100644 --- a/tests/performance/CMakeLists.txt +++ b/tests/performance/CMakeLists.txt @@ -2,7 +2,12 @@ # Add performance tests to ctest ############################################################# -message("Adding performance tests for QMCPACK") +IF (NOT QMC_DATA) + MESSAGE("QMC_DATA is not set. Performance tests will be skipped.") +ELSE() + message("Adding performance tests for QMCPACK") +ENDIF() + # includes SUBDIRS(NiO C-graphite C-molecule) diff --git a/tests/performance/NiO/CMakeLists.txt b/tests/performance/NiO/CMakeLists.txt index 7dbe90296..eb234d5e8 100644 --- a/tests/performance/NiO/CMakeLists.txt +++ b/tests/performance/NiO/CMakeLists.txt @@ -5,7 +5,9 @@ # QMC_DATA - NiO subdirectory should contain the *.h5 files FUNCTION(ADD_NIO_TEST TEST_NAME TEST_DIR TEST_SOURCE_DIR INPUT_FILE H5_FILE ADJUST_INPUT) - MESSAGE("Adding test ${TEST_NAME}") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("Adding test ${TEST_NAME}") + ENDIF() SET (WDIR "${qmcpack_BINARY_DIR}/tests/performance/NiO/${TEST_DIR}") SET (SDIR "${CMAKE_SOURCE_DIR}/tests/performance/NiO/sample/${TEST_SOURCE_DIR}") @@ -53,7 +55,9 @@ FUNCTION(ADD_NIO_TEST TEST_NAME TEST_DIR TEST_SOURCE_DIR INPUT_FILE H5_FILE ADJU ENDFUNCTION() IF (NOT QMC_DATA) - MESSAGE("QMC_DATA not set. Performance tests not added.") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("QMC_DATA not set. Performance tests not added.") + ENDIF() ELSEIF(NOT EXISTS ${QMC_DATA}/NiO) MESSAGE("NiO directory under QMC_DATA does not exist. NiO performance tests not added.") ELSE() diff --git a/tests/solids/NiO_a4_e48_pp/CMakeLists.txt b/tests/solids/NiO_a4_e48_pp/CMakeLists.txt index dc7168f70..9ebb2bf3c 100644 --- a/tests/solids/NiO_a4_e48_pp/CMakeLists.txt +++ b/tests/solids/NiO_a4_e48_pp/CMakeLists.txt @@ -1,5 +1,7 @@ IF (NOT QMC_DATA) - MESSAGE("QMC_DATA not set. NiO_a4_e48_pp tests not added.") + IF ( QMC_VERBOSE_TEST_CONFIGURATION ) + MESSAGE("QMC_DATA not set. NiO_a4_e48_pp tests not added.") + ENDIF() ELSEIF(NOT EXISTS ${QMC_DATA}/NiO) MESSAGE("NiO directory under QMC_DATA does not exist. NiO_a4_e48_pp tests not added.") ELSE()