Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect AVX-512 FMA count #125

Merged
merged 12 commits into from
Sep 22, 2020
Prev Previous commit
Next Next commit
fix CPX detection
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com>
  • Loading branch information
Hammond, Jeff R committed Aug 15, 2020
commit a4d0a41f35cff3d8c6d2d97220073b9a3e7257d7
5 changes: 3 additions & 2 deletions src/cpuinfo_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ static bool HasSecondFMA(uint32_t model) {
if (proc_name[17]=='S' || proc_name[17]=='B') {
jeffhammond marked this conversation as resolved.
Show resolved Hide resolved
return false;
}
// detect Gold 5120 and below
// detect Gold 5_20 and below, except for Gold 53__
else if (proc_name[17]=='G' && proc_name[22]=='5') {
jeffhammond marked this conversation as resolved.
Show resolved Hide resolved
return (proc_name[24]=='2' && proc_name[25]=='2');
return ((proc_name[23]=='3') ||
(proc_name[24]=='2' && proc_name[25]=='2'));
}
// detect Xeon W 210x
else if (proc_name[17]=='W' && proc_name[21]=='0') {
Expand Down