Skip to content

Commit 0f41c25

Browse files
committed
Disable mpi process pinning in test suite
1 parent 9a0f986 commit 0f41c25

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,15 @@ else()
421421
endfunction()
422422
endif()
423423

424+
# mpiexec argument to disable pinning of processes to cores. Used in test suite
425+
# as several tests are run at the same time.
426+
if(NOT APPLE)
427+
set(ESPRESSO_MPIEXEC_DONT_PIN --bind-to none)
428+
else()
429+
# not supported on Apple
430+
set(ESPRESSO_MPIEXEC_DONT_PIN "")
431+
endif()
432+
424433
#
425434
# Boost
426435
#

testsuite/python/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ function(python_test)
9292
add_test(
9393
NAME ${TEST_NAME}
9494
COMMAND
95-
${MPIEXEC} ${ESPRESSO_MPIEXEC_OVERSUBSCRIBE} ${MPIEXEC_NUMPROC_FLAG}
95+
${MPIEXEC} ${ESPRESSO_MPIEXEC_DONT_PIN}
96+
${ESPRESSO_MPIEXEC_OVERSUBSCRIBE} ${MPIEXEC_NUMPROC_FLAG}
9697
${TEST_NUM_PROC} ${MPIEXEC_PREFLAGS} ${ESPRESSO_MPIEXEC_TMPDIR}
9798
${CMAKE_BINARY_DIR}/pypresso ${PYPRESSO_OPTIONS}
9899
${TEST_FILE_CONFIGURED} ${TEST_ARGUMENTS} ${MPIEXEC_POSTFLAGS})

0 commit comments

Comments
 (0)