File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,12 @@ endif()
148148# If MPI support is enabled, find MPI includes and libraries
149149if (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)
168171endif (EXAGO_ENABLE_MPI)
169172
170173# If GPU support is enabled, find CUDA
You can’t perform that action at this time.
0 commit comments