Skip to content

Commit

Permalink
Add support for generic x86_64 processor with Intel Fortran
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Aug 30, 2023
1 parent af8151c commit a74ef3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added support for building with Intel Fortran in Rosetta2 (generic x86_64 processor)

### Changed

## [3.31.1] - 2023-08-03
Expand Down
1 change: 1 addition & 0 deletions compiler/flags/GNU_Fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ elseif (${proc_description} MATCHES "Intel")
set (PREFER_AVX128 "-mprefer-avx128")
set (NO_FMA "-mno-fma")
elseif ( ${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64" )
message(WARNING "Unknown processor type. Defaulting to a generic x86_64 processor. Performance may be suboptimal.")
set (GNU_TARGET_ARCH "x86-64")
set (GNU_NATIVE_ARCH "native")
else ()
Expand Down
3 changes: 3 additions & 0 deletions compiler/flags/Intel_Fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ elseif (${proc_description} MATCHES "Intel")
# Previous versions of GEOS used this flag, which was not portable
# for AMD. Keeping here for a few versions for historical purposes.
#set (COREAVX2_FLAG "-xCORE-AVX2")
elseif ( ${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64" )
message(WARNING "Unknown processory type. Defaulting to a generic x86_64 processor. Performance may be suboptimal.")
set (COREAVX2_FLAG "")
else ()
message(FATAL_ERROR "Unknown processor. Please file an issue at https://github.com/GEOS-ESM/ESMA_cmake")
endif ()
Expand Down

0 comments on commit a74ef3e

Please sign in to comment.