Refactor sysconf checking
commit6deda01904ffbf3306862966c3575737253ff9b1
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 29 Jun 2016 13:11:40 +0000 (29 15:11 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 29 Jun 2016 14:37:46 +0000 (29 16:37 +0200)
treed332dc99f66830c58810f3c7f3de31a870ba6066
parente2cd2e2e10c7259ed58ddf926fd0d5b0a38015c1
Refactor sysconf checking

The introduction of layered checking for hardware topology left
checking based on sysconf and OpenMP applying in cases where it is
unclear whether the conclusions are valid, and surely difficult to
test reliably.

Instead, those checks should apply only to sysconf-based detection
(which is the final fallback case). Those are refactored here with a
view to code changes that will merge shortly from release-5-1.

Removed a one-line output to the debug stream.

Change-Id: Ide56fa8d6817608fba9f29a05da10034ae543b75
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/hardwaretopology.cpp
src/gromacs/hardware/hardwaretopology.h
src/gromacs/hardware/tests/hardwaretopology.cpp