]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Be a bit less restrictive
authorMatthias Maier <tamiko@kyomu.43-1.org>
Mon, 28 Apr 2014 22:24:34 +0000 (22:24 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Mon, 28 Apr 2014 22:24:34 +0000 (22:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@32855 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_add_test.cmake

index 758604e778c7251f216d20ae352509691d40386b..cc47fb41d1cb9b1510f7b9036d887448a6751de3 100644 (file)
@@ -258,12 +258,15 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file)
         TIMEOUT ${TEST_TIME_LIMIT}
         )
 
-      IF(NOT "${_n_cpu}" STREQUAL "0")
+      IF(_n_cpu GREATER 4)
+        MATH(EXPR _slots "${_n_cpu} / 2")
         #
         # Limit concurrency of mpi tests:
         #
-        SET_TESTS_PROPERTIES(${_test_full} PROPERTIES PROCESSORS ${_n_cpu})
+        SET_TESTS_PROPERTIES(${_test_full} PROPERTIES PROCESSORS ${_slots})
+      ENDIF()
 
+      IF(NOT "${_n_cpu}" STREQUAL "0")
         #
         # We have to be careful not to run different mpirun settings for the
         # same executable in parallel because this triggers a race condition

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.