Obey OpenMP thread count limit with tMPI
commitf8259e4b36efbaf8dae21b4946a64ef64a6a5dc9
authorBerk Hess <hess@kth.se>
Thu, 2 Jul 2015 08:09:43 +0000 (2 10:09 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 4 Jul 2015 09:06:42 +0000 (4 11:06 +0200)
tree1755c0dda227e74a75dd632c606146e5a14d8f6b
parent5e1339d82fbbb7e4a231ca7ebb290729e8beee56
Obey OpenMP thread count limit with tMPI

With thread-MPI mdrun would choose the number of OpenMP threads so
that the maximal number of hardware threads was used. When the number
of ranks was limited by the system size, this led to too high OpenMP
thread counts which lowered the efficiency. Now a limit is imposed.
Also updated some comments and renamed constants and bNTOptSet.

Change-Id: I830b5a3f2fd28f87acfbcf982103b62fc3e45758
src/programs/mdrun/resource-division.cpp
src/programs/mdrun/resource-division.h
src/programs/mdrun/runner.cpp