Move consistency check for number of threads
commit13d0bbcf9735a0407b8d97266210536b04b7fad0
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 Jul 2016 13:42:40 +0000 (4 15:42 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 7 Jul 2016 21:14:56 +0000 (7 23:14 +0200)
treedc9c6f8498c49f156df16ccd04bdfc9efc845856
parentfef652922ef16c43d1cc54919a3101fd4091bb70
Move consistency check for number of threads

Recent refactoring meant that the count of threads known to OpenMP was
only used to provide a consistency check in the fallback case of
sysconf detection.

Note that no version of the HardwareTopology code ever used
information from OpenMP as an input.

Parameters for implementing warnings currently remain in
HardwareTopology::detect(), so that the sysconf case can continue to
handle cases where we think we know how to advise the user. This
will go away in master branch with the new logging module.

Change-Id: Iaf383abc420d2f04b6514e8856c9f1414cbba55c
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/detecthardware.h
src/gromacs/hardware/hardwaretopology.cpp
src/programs/mdrun/runner.cpp