]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: run_test.sh: ensure to never bind to cores/processors for mpi tests
authorMatthias Maier <tamiko@43-1.org>
Tue, 27 Jun 2023 01:41:33 +0000 (20:41 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 27 Jun 2023 14:22:33 +0000 (09:22 -0500)
cmake/scripts/run_test.sh

index 6d8f94af2b42978341ce0a97471b52eab003348a..3b2a8a073cfc921431bc4f8fa345bf9a816a37f0 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.