Fix self-consistency tests of hwloc data structures
commit2019d8aefdb6a179293be6de537b9d72f7cbb78a
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 9 Apr 2019 12:51:44 +0000 (9 14:51 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sat, 13 Apr 2019 07:14:59 +0000 (13 09:14 +0200)
treec57682cc776d0ceb42a14878af246bd4bc6715f8
parentefa78baae264c8a4388405d7d507ecbeeaa9e973
Fix self-consistency tests of hwloc data structures

These relied on assumptions of regularity that have been shown to be
violated in practice. The new tests check that there is a bijective
mapping of logical processors to valid hardware thread descriptors.

Fixes #2921

Change-Id: I31e998b7a2881c05dfb5c7c8b46550489cbdefd6
src/gromacs/hardware/tests/hardwaretopology.cpp