Make oversubscription warning consistent
commit7607e626462beb68d0fbba41854a2a141986f826
authorBerk Hess <hess@kth.se>
Fri, 15 Dec 2017 15:12:15 +0000 (15 16:12 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 19 Dec 2017 01:02:02 +0000 (19 02:02 +0100)
treefa36c20d0f6e2f441a61c9a00e9d34be2e57deef
parentc1326cd3dcfde8c8bbba2e6cdca628622d4be6c9
Make oversubscription warning consistent

The hardware thread oversubscription warning was only issued
with OpenMP and without separate PME ranks. Now it actually reduces
the thread count over the physical node.
Also moved the thread affinity up to the earliest possible point.

Refs #2345

Change-Id: Ifdf62c723fd87b0ddaab0df1e2f1bf36b461ea33
src/gromacs/mdlib/gmx_omp_nthreads.cpp
src/gromacs/taskassignment/resourcedivision.cpp
src/gromacs/taskassignment/resourcedivision.h
src/programs/mdrun/runner.cpp