Fix #3668
authorAndrey Alekseenko <al42and@gmail.com>
Fri, 25 Sep 2020 20:41:08 +0000 (20:41 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 25 Sep 2020 20:41:08 +0000 (20:41 +0000)
commite35582271bb5e7fd331e436cb9ef2eb1d5dd2968
tree9416641e44fa7f48844a8bf1065ac97adf910482
parentf646e1d08f83d7fdbf739f32cfeb26a1ae24440d
Fix #3668

Following the implementation in Google's cpu_features tool made by an
Intel engineer used for original implementation, we only check for the
presence of the second AVX-512 FMA unit if the CPU supports AVX-512F
(foundation), which should be present for all AVX-512 implementations.

That's distinct from the way cpu_features tool does AVX detection, but
should be no less reliable.
src/gromacs/hardware/cpuinfo.cpp
src/gromacs/hardware/cpuinfo.h