implement AVX-512 second FMA detection
authorJeff Hammond <jeff.science@gmail.com>
Wed, 12 Aug 2020 12:47:28 +0000 (12:47 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 12 Aug 2020 12:47:28 +0000 (12:47 +0000)
commitb1aa4d342fac3fa32ccb491df47848d40e5e40ab
treeb5c2b5090150f8969540bda81a68ad120c4009a1
parentc34f2ff619ac765f92f43a0e418b14eaa899e135
implement AVX-512 second FMA detection

This uses the CPUID processor name.

We use the condensed method developed for Google cpu_features:
https://github.com/jeffhammond/cpu_features/blob/avx512_fma_count/src/cpuinfo_x86.c#L119
(this link will expire when it is merged into the upstream project)

A more pedantic approach is shown here:
https://github.com/jeffhammond/vpu-count/blob/master/vpu-count.c

This code must be updated when new Intel processors are released.
The author of this commit will bear that maintenance burden as long as possible.

Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com>
src/gromacs/hardware/cpuinfo.cpp
src/gromacs/hardware/cpuinfo.h