Fix SIMD detection on new AMD AVX CPUs w/o fma
commite4e3fe7e261b123e1b93493630cd515eb471124d
authorErik Lindahl <erik@kth.se>
Sun, 3 Apr 2016 19:52:08 +0000 (3 21:52 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 Apr 2016 00:43:11 +0000 (4 02:43 +0200)
tree8be8c9e8e04cc58363d1b6bf76a4a9133529ba55
parent5e7178f07cb86044cc1c679a84817e9f9f31bc94
Fix SIMD detection on new AMD AVX CPUs w/o fma

We earlier assumed that all AMD CPUs had fma
support and could use AVX_128_FMA, but with this
change we properly detect it and revert to
AVX_256 otherwise.

Fixes #1906 for release-5.1.

Change-Id: I803a6bfa75c5069b73023688a477cfca03c1ddcd
src/gromacs/gmxlib/gmx_cpuid.c