From 61319f97a003d653512bba1c6714e8f3924be2d1 Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Wed, 4 Jan 2023 09:33:18 -0500 Subject: [PATCH] Add AMD Milan Support --- CHANGELOG.md | 6 ++++++ compiler/flags/GNU_Fortran.cmake | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5a9709..65b7bb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +## [3.25.0] - 2023-01-04 + +### Added + +- Added detection of AMD Milan chips for GNU flags + ## [3.24.0] - 2023-01-03 ### Changed diff --git a/compiler/flags/GNU_Fortran.cmake b/compiler/flags/GNU_Fortran.cmake index 9140d49..d362ebd 100644 --- a/compiler/flags/GNU_Fortran.cmake +++ b/compiler/flags/GNU_Fortran.cmake @@ -127,7 +127,11 @@ elseif (${proc_description} MATCHES "Apple M") set (PREFER_AVX128 "-mprefer-avx128") set (NO_FMA "-mno-fma") endif () -elseif (${proc_description} MATCHES "EPYC") +elseif (${proc_description} MATCHES "EPYC 7..3") + set (GNU_TARGET_ARCH "znver3") + set (GNU_NATIVE_ARCH "native") + set (NO_FMA "-mno-fma") +elseif (${proc_description} MATCHES "EPYC 7..2") set (GNU_TARGET_ARCH "znver2") set (GNU_NATIVE_ARCH "native") set (NO_FMA "-mno-fma")