Added basic CPU topology information to cpuid code
authorErik Lindahl <erik@kth.se>
Wed, 9 Jan 2013 00:37:43 +0000 (01:37 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 11 Jan 2013 18:05:33 +0000 (19:05 +0100)
commita1bd375a4411f978b6451473357b339c1d5cfd0b
treed8f100d79a93dec00632b934f9a5eff768313f41
parentf3dd8cb7ae23accff657551523d05657262a72ff
Added basic CPU topology information to cpuid code

We can now detect the locality of hardware threads, cores,
and packages for Intel and AMD CPUs under Linux and Windows.
In particular, this provides an array with locality order
for logical processors that can be used to optimize placement.
Refs #1086, #1101.

Change-Id: I3f7985b1b67729376918c5a135b9157a9086235e
include/gmx_cpuid.h
src/gmxlib/gmx_cpuid.c