Fixed inconsistent locality_order array for thread affinity.
authorSander Pronk <pronk@kth.se>
Wed, 29 May 2013 12:17:06 +0000 (14:17 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 4 Jun 2013 09:31:46 +0000 (11:31 +0200)
commit6c716dd6cf2cb18cedd50322af8d4600494adefd
tree8c48028da4f79d7b84e45af4974991e4c030ebf5
parentfa32298753490eb3f95f9edb06ac42fd6accd512
Fixed inconsistent locality_order array for thread affinity.

The locality_order array from gmx_cpuid (determining which threads
map onto which processors) is inconsistent if run with valgrind. This
patch checks the consistency and creates a fallback linear ordering if
that happens.

Change-Id: I59c0cef487134f9cb4115faf364dcfdad7f0d0e6
src/gmxlib/gmx_cpuid.c