From: Matthias Maier Date: Tue, 27 Jun 2023 01:41:33 +0000 (-0500) Subject: CMake: run_test.sh: ensure to never bind to cores/processors for mpi tests X-Git-Tag: v9.5.0-rc1~6^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c293c1c3c0dd09a2070997e0e9afd50498d0726a;p=dealii.git CMake: run_test.sh: ensure to never bind to cores/processors for mpi tests --- diff --git a/cmake/scripts/run_test.sh b/cmake/scripts/run_test.sh index 6d8f94af2b..3b2a8a073c 100644 --- a/cmake/scripts/run_test.sh +++ b/cmake/scripts/run_test.sh @@ -83,8 +83,16 @@ case $STAGE in export OMP_THREAD_LIMIT="2" export OMP_PROC_BIND="false" - # Allow oversubscription for MPI (needed for Openmpi@3.0) + # + # OpenMPI parameters: + # - Allow to oversubsribe the system, meaning that we can issue tests + # with more mpi ranks than available cores. + # - Ensure that we do not bind mpi tests to specific + # cores/processors/sockets. Otherwise we run the risk that multiple + # mpi tests (for example with two ranks) are all pinned to the same + # processor core, bringing everything to a grinding halt. export OMPI_MCA_rmaps_base_oversubscribe=1 + export OMPI_MCA_hwloc_base_binding_policy=none rm -f failing_output rm -f output