Skip to content

Commit

Permalink
Merge pull request #67 from junghans/patch-2
Browse files Browse the repository at this point in the history
cmake: clarify test parallelization
  • Loading branch information
mkstoyanov authored Oct 24, 2024
2 parents cbfe134 + bd250fa commit 192e67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/MakeTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ message(STATUS "heFFTe post-installation testing")
macro(heffte_add_mpi_test)
cmake_parse_arguments(_heffte "" "NAME;COMMAND;RANKS" "" ${ARGN} )
add_test(${_heffte_NAME} ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${_heffte_RANKS} ${MPIEXEC_PREFLAGS} ${CMAKE_CURRENT_BINARY_DIR}/${_heffte_COMMAND} ${MPIEXEC_POSTFLAGS})
set_tests_properties(${_heffte_NAME} PROPERTIES PROCESSORS ${_heffte_RANKS})
unset(_heffte_NAME)
unset(_heffte_RANKS)
unset(_heffte_COMMAND)
Expand Down
2 changes: 1 addition & 1 deletion cmake/heffte_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ endmacro()
macro(heffte_add_mpi_test)
cmake_parse_arguments(_heffte "" "NAME;COMMAND;RANKS" "" ${ARGN} )
add_test(${_heffte_NAME} ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${_heffte_RANKS} ${MPIEXEC_PREFLAGS} ${CMAKE_CURRENT_BINARY_DIR}/${_heffte_COMMAND} ${MPIEXEC_POSTFLAGS})
set_tests_properties(${_heffte_NAME} PROPERTIES RUN_SERIAL ${Heffte_SEQUENTIAL_TESTING})
set_tests_properties(${_heffte_NAME} PROPERTIES PROCESSORS ${_heffte_RANKS} RUN_SERIAL ${Heffte_SEQUENTIAL_TESTING})
unset(_heffte_NAME)
unset(_heffte_RANKS)
unset(_heffte_COMMAND)
Expand Down

0 comments on commit 192e67b

Please sign in to comment.