From 5bd7aa6793b693441a54a153d9bf7ddb4c97790c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 29 Apr 2014 03:12:22 +0000 Subject: [PATCH] Augment documentation. git-svn-id: https://svn.dealii.org/trunk@32856 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/macros/macro_add_test.cmake | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/deal.II/cmake/macros/macro_add_test.cmake b/deal.II/cmake/macros/macro_add_test.cmake index cc47fb41d1..bf41cec0bd 100644 --- a/deal.II/cmake/macros/macro_add_test.cmake +++ b/deal.II/cmake/macros/macro_add_test.cmake @@ -258,11 +258,16 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file) TIMEOUT ${TEST_TIME_LIMIT} ) - IF(_n_cpu GREATER 4) + # + # Limit concurrency of mpi tests. We can only set concurrency + # for the entire test, which includes the compiling and linking + # stages that are purely sequential. There is no good way to model + # this without unnecessarily restricting concurrency. Consequently, + # we just choose to model an "average" concurrency as one half of + # the number of MPI jobs. + # + IF(_n_cpu GREATER 2) MATH(EXPR _slots "${_n_cpu} / 2") - # - # Limit concurrency of mpi tests: - # SET_TESTS_PROPERTIES(${_test_full} PROPERTIES PROCESSORS ${_slots}) ENDIF() -- 2.39.5