Skip to content

Commit

Permalink
Accidentally deleted recent change
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Hahn <hahnse@ornl.gov>
  • Loading branch information
quantumsteve committed Jan 21, 2022
1 parent e0cc936 commit b1598fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMake/macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ function(
math(EXPR TOT_PROCS "${PROCS} * ${THREADS}")
set(QMC_APP $<TARGET_FILE:qmcpack>)
set(TEST_ADDED_TEMP FALSE)

if(NOT QMC_OMP)
if(${THREADS} GREATER 1)
message(VERBOSE "Disabling test ${TESTNAME} (exceeds maximum number of threads=1 if OpenMP is disabled -DQMC_OMP=0)")
return()
endif()
endif()

if(HAVE_MPI)
if(${TOT_PROCS} GREATER ${TEST_MAX_PROCS})
message(VERBOSE "Disabling test ${TESTNAME} (exceeds maximum number of processors ${TEST_MAX_PROCS})")
Expand Down

0 comments on commit b1598fa

Please sign in to comment.