Skip to content

Commit

Permalink
Merge branch 'ykim/frontier/crayclang-update' (PR #6367)
Browse files Browse the repository at this point in the history
Uses the Fortran linker for the Cray compiler on Frontier

* add "set(E3SM_LINK_WITH_FORTRAN "TRUE")" in crayclang_frontier.cmake

Some ELM external source files (such as sbetr/src/betr/betr_rxns/Tracer1beckBGCReactionsType.F90)
use Fortran-compiler-specific intrinsic functions such as 'erfc',
which require linking with the Fortran compiler.

[No baseline for Frontier yet]
  • Loading branch information
grnydawn committed Apr 24, 2024
2 parents 56f7f6c + 2ccabdf commit 3f4b72c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cime_config/machines/cmake_macros/crayclang_frontier.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ string(APPEND CMAKE_Fortran_FLAGS " -hipa0 -hzero")
# -em -ef generates modulename.mod (lowercase files) to support
# Scorpio installs
string(APPEND CMAKE_Fortran_FLAGS " -em -ef")

# to support Fortran specific compiler intrinsic functions
set(E3SM_LINK_WITH_FORTRAN "TRUE")

0 comments on commit 3f4b72c

Please sign in to comment.