Skip to content

Commit

Permalink
Disable mpi process pinning in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber committed Oct 15, 2024
1 parent 9a0f986 commit 0f41c25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,15 @@ else()
endfunction()
endif()

# mpiexec argument to disable pinning of processes to cores. Used in test suite
# as several tests are run at the same time.
if(NOT APPLE)
set(ESPRESSO_MPIEXEC_DONT_PIN --bind-to none)
else()
# not supported on Apple
set(ESPRESSO_MPIEXEC_DONT_PIN "")
endif()

#
# Boost
#
Expand Down
3 changes: 2 additions & 1 deletion testsuite/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ function(python_test)
add_test(
NAME ${TEST_NAME}
COMMAND
${MPIEXEC} ${ESPRESSO_MPIEXEC_OVERSUBSCRIBE} ${MPIEXEC_NUMPROC_FLAG}
${MPIEXEC} ${ESPRESSO_MPIEXEC_DONT_PIN}
${ESPRESSO_MPIEXEC_OVERSUBSCRIBE} ${MPIEXEC_NUMPROC_FLAG}
${TEST_NUM_PROC} ${MPIEXEC_PREFLAGS} ${ESPRESSO_MPIEXEC_TMPDIR}
${CMAKE_BINARY_DIR}/pypresso ${PYPRESSO_OPTIONS}
${TEST_FILE_CONFIGURED} ${TEST_ARGUMENTS} ${MPIEXEC_POSTFLAGS})
Expand Down

0 comments on commit 0f41c25

Please sign in to comment.