Skip to content

Commit b0ae7a3

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

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ 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+
set(ESPRESSO_MPIEXEC_DONT_PIN "--bind-to none")
427+
424428
#
425429
# Boost
426430
#

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)