Skip to content

Commit

Permalink
Merge branch 'xylar/mpas-framework/fix-cray-cray-openmp' (PR E3SM-Pro…
Browse files Browse the repository at this point in the history
…ject#6193)

Fix OpenMP support for MPAS standalone builds with cray-cray

A -fopenmp (rather than a -homp) flag seems to be needed for OpenMP on
Frontier.

For MPAS component standalone builds only -- does not impact E3SM

[BFB]
  • Loading branch information
jonbob committed Feb 8, 2024
2 parents 50485d0 + d6b1807 commit abe7218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/mpas-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ cray-cray:
"CFLAGS_DEBUG = -O0 -g" \
"CXXFLAGS_DEBUG = -O0 -g" \
"LDFLAGS_DEBUG = -O0 -g -Ktrap=divz,fp,inv,ovf" \
"FFLAGS_OMP = -h omp" \
"CFLAGS_OMP = -h omp" \
"FFLAGS_OMP = -homp -fopenmp" \
"CFLAGS_OMP = -homp -fopenmp" \
"PICFLAG = -f pic" \
"BUILD_TARGET = $(@)" \
"CORE = $(CORE)" \
Expand Down

0 comments on commit abe7218

Please sign in to comment.