Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ ftn:
"USE_PAPI = $(USE_PAPI)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

titan-cray:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a superset of the cray-nersc target, with the exception of the CC_SERIAL variable. Is there any chance that these two targets -- cray-nersc and titan-cray -- are compatible?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other main difference between titan-cray and cray-nersc is the FFLAGS_OPT. Most notable the -s integer32. But this also might be needed on cray-nersc eventually. I think we were building using cray 8.3.0 and 8.3.4 when this came up, but essentially crays compiler defaults to using integer_8 for all integers, which causes the esmf time library to not build because their division interfaces become redundant for integer_4 and integer*8.

( $(MAKE) all \
"FC_PARALLEL = ftn" \
"CC_PARALLEL = cc" \
"FC_SERIAL = ftn" \
"CC_SERIAL = gcc" \
"FFLAGS_OPT = -s integer32 -default64 -O3 -f free -N 255 -em -ef" \
"CFLAGS_OPT = -O3" \
"LDFLAGS_OPT = -O3" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
"USE_PAPI = $(USE_PAPI)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

pgi:
( $(MAKE) all \
"FC_PARALLEL = mpif90" \
Expand Down