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 b0ae7a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ 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.
set(ESPRESSO_MPIEXEC_DONT_PIN "--bind-to none")

#
# 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 b0ae7a3

Please sign in to comment.