]> https://gitweb.dealii.org/ - dealii.git/commit
rework set_thread_limit()
authorTimo Heister <timo.heister@gmail.com>
Sun, 26 Jul 2015 20:54:16 +0000 (16:54 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 28 Jul 2015 16:46:56 +0000 (12:46 -0400)
commit1d9c44a0c241cc36bd460d43b706f902bc5b28f6
tree743134ea40de526e509f37013a20926beccd5445
parent29070423ddcd62da1fed2c7a88a8b97196ed69e8
rework set_thread_limit()

- allow calling set_thread_limit() more than once by reinitializing the
TBB task_scheduler
- always call set_thread_limit() using static initialization before any
user code (and thus TBB usage) happens
- as a result DEAL_II_NUM_THREADS will now always be respected even if
users never call set_thread_limit() themselves
- test suite: always enforce a maximum of 5 threads (instead of only if
not configured with MPI)
- add test for changing the thread limit
doc/news/changes.h
include/deal.II/base/multithread_info.h
source/base/multithread_info.cc
tests/base/task_11.cc [new file with mode: 0644]
tests/base/task_11.with_threads=on.output [new file with mode: 0644]
tests/fe/cell_similarity_11.cc
tests/tests.h

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.