diff --git a/CHANGELOG.md b/CHANGELOG.md index 574b0cd..d8d57dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added detection of AMD Milan chips for GNU flags - Added support for Hygon processors with Intel Fortran ### Changed diff --git a/compiler/flags/GNU_Fortran.cmake b/compiler/flags/GNU_Fortran.cmake index bd4b268..d222c5e 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")