Support for portable hardware locality (hwloc)
commit61fe70a919ecbdf024d30199a435d8cc16d3c1b0
authorErik Lindahl <erik@kth.se>
Mon, 18 May 2015 22:36:57 +0000 (19 00:36 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 9 Mar 2016 13:20:38 +0000 (9 14:20 +0100)
tree1fec35d143657cace033da26d8b40708092bc95e
parentaa6c0aff2e46f4cc82f7f91f5fa0856161e7464f
Support for portable hardware locality (hwloc)

Added CMake support to detect hwloc, and extended the
HardwareTopology class to read information from hwloc when present,
with the CpuInfo class as fallback. All available information is
dumped to the log file at the beginning of the run. Tested to
work on x86 (Intel, AMD, both single- and dual socket), Power8 and
32-bit Arm, and hwloc versions back to 1.5 (for older hardware).

Change-Id: Id98819254bdfdcb5725f1aee625ecb65dc40f752
CMakeLists.txt
cmake/FindHwloc.cmake [new file with mode: 0644]
src/config.h.cmakein
src/gromacs/hardware/cpuinfo.cpp
src/gromacs/hardware/cpuinfo.h
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/hardwaretopology.cpp
src/gromacs/hardware/hardwaretopology.h
src/gromacs/hardware/tests/cpuinfo.cpp
src/gromacs/hardware/tests/hardwaretopology.cpp
src/gromacs/utility/binaryinformation.cpp