Support hwloc 2.x.x
authorKevin Boyd <kevin.boyd@uconn.edu>
Sat, 21 Jul 2018 18:56:38 +0000 (14:56 -0400)
committerErik Lindahl <erik.lindahl@gmail.com>
Sat, 4 Aug 2018 20:15:14 +0000 (22:15 +0200)
commit6f58aa984a84c651419f5de9b46b81ade136619c
treeb38a57d2b9a87158d59e74d4674f2adaa65a703a
parent7166b5bd7b0844b4cc9f7814127a548078fbd653
Support hwloc 2.x.x

Created compatibility layer to account for API changes moving
from hwloc 1.x.x to 2.x.x while retaining support for v1.x.x.

Changes supporting hwloc 2.x.x include:
    -reworked descendents lookup in topology tree to account for new
     division of object children into "normal", "memory", and "io" types
    -different memory access location for hwloc objects
    -accessing distances (latencies) between nodes has been reworked
    -different flags for accessing PCI devices
    -changed numa node ancestor search to account for numa nodes no
     longer being a normal part of topology tree

Fixes #2539

Change-Id: I483dda3dd344d8f7c99aa828bcc118a3d2de9dfd
src/gromacs/hardware/hardwaretopology.cpp