]> https://gitweb.dealii.org/ - dealii.git/commitdiff
explicitly oversubscribe with MPI for quick tests 5209/head
authorDenis Davydov <davydden@gmail.com>
Sat, 7 Oct 2017 19:10:58 +0000 (21:10 +0200)
committerDenis Davydov <davydden@gmail.com>
Sat, 7 Oct 2017 19:10:58 +0000 (21:10 +0200)
tests/quick_tests/CMakeLists.txt

index 13c1d6571632e24df615af696df7f73d55f5e6c6..925d38d5fc050f7b7d7ea336d8f6002478595cb6 100644 (file)
@@ -59,7 +59,7 @@ MACRO(make_quicktest test_basename build_name mpi_run)
   # this is a hack to make sure the -OK file is deleted
   # even if compilation fails.
   ADD_CUSTOM_TARGET(kill-${_target}-OK
-        COMMAND rm -f ${_target}-OK 
+        COMMAND rm -f ${_target}-OK
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     )
   ADD_DEPENDENCIES(${_target} kill-${_target}-OK)
@@ -70,7 +70,10 @@ MACRO(make_quicktest test_basename build_name mpi_run)
       -P ${CMAKE_SOURCE_DIR}/cmake/scripts/run_test.cmake
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     )
-  SET_TESTS_PROPERTIES(${_target} PROPERTIES LABEL "sanity checks")
+  SET_TESTS_PROPERTIES(${_target} PROPERTIES
+    LABEL "sanity checks"
+    ENVIRONMENT "OMPI_MCA_rmaps_base_oversubscribe=1")
+  # ^^^ Allow oversubscription for MPI (needed for Openmpi@3.0)
 ENDMACRO()
 
 

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.