Skip to content

Commit a65c116

Browse files
committed
Print message with TESTING_MAX_NUMPROCS.
1 parent 236b844 commit a65c116

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,12 @@ endif()
148148
# If MPI support is enabled, find MPI includes and libraries
149149
if(EXAGO_ENABLE_MPI)
150150
find_package(MPI REQUIRED COMPONENTS C CXX)
151-
message(STATUS "MPI Max Ranks: ${MPIEXEC_MAX_NUMPROCS}")
152-
set(TESTING_MAX_NUMPROCS 3)
151+
message(STATUS "MPI max ranks: ${MPIEXEC_MAX_NUMPROCS}")
152+
set(TESTING_MAX_NUMPROCS 2) # TODO: Change back to 3
153153
if(${TESTING_MAX_NUMPROCS} GREATER_EQUAL ${MPIEXEC_MAX_NUMPROCS})
154154
set(${TESTING_MAX_NUMPROCS} ${MPIEXEC_MAX_NUMPROCS})
155155
endif()
156+
message(STATUS "Max ranks for testing: ${TESTING_MAX_NUMPROCS}")
156157
if(NOT DEFINED MPI_CXX_COMPILER)
157158
set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER})
158159
set(CMAKE_C_COMPILER ${MPI_C_COMPILER})
@@ -165,6 +166,8 @@ if(EXAGO_ENABLE_MPI)
165166
""
166167
CACHE STRING "Extra args to mpiexec when running tests"
167168
)
169+
else()
170+
set(TESTING_MAX_NUMPROCS 1)
168171
endif(EXAGO_ENABLE_MPI)
169172

170173
# If GPU support is enabled, find CUDA

0 commit comments

Comments
 (0)