Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 3da51e1

Browse files
authored
Merge pull request #7 from NCAR/add_hera_intel
Add build environment hera/intel
2 parents a9c7f63 + 7cad935 commit 3da51e1

File tree

2 files changed

+66
-3
lines changed

2 files changed

+66
-3
lines changed

macros.make.hera.intel

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Settings for LIBRARY BUILD ONLY: theia.intel
2+
#
3+
# Flags common to all
4+
RM = rm -f
5+
AR = ar
6+
ARFLAGS =
7+
FC = mpiifort
8+
FCserial = ifort
9+
CC = icc
10+
11+
ifeq ($(OPENMP),1)
12+
OMPFLAGS= -qopenmp
13+
else
14+
OMPFLAGS=
15+
endif
16+
17+
# Number of parallel tasks for gmake
18+
GMAKEMINUSJ = -j24
19+
20+
# Flags for bacio library
21+
BACIO_FFLAGS = $(OMPFLAGS) -O3 -xHOST -traceback -fPIC
22+
BACIO_CFLAGS = $(OMPFLAGS) -O3 -DUNDERSCORE -DLINUX -fPIC
23+
24+
# Flags for gfsio library
25+
GFSIO_FFLAGS = $(OMPFLAGS) -traceback -g -xHOST -convert big_endian -assume byterecl -I$(INCMOD) -FR -fPIC
26+
GFSIO_ARFLAGS = -rv
27+
28+
# Flags for ip library
29+
IP_FFLAGS = $(OMPFLAGS) -r8 -O3 -fp-model strict -ip -I. -convert little_endian -assume byterecl
30+
IP_FPPFLAGS = -fpp -DLSIZE=d -save-temps
31+
IP_ARFLAGS = -ruv
32+
33+
# Flags for landsfcutil library
34+
LAND_FFLAGS = $(OMPFLAGS) -r8 -O3 -fp-model strict -ip -FR -I. -module . -c
35+
LAND_ARFLAGS = crvs
36+
37+
# Flags for nemsio library
38+
NEMSIO_FFLAGS = $(OMPFLAGS) -O -g -fPIC
39+
NEMSIO_ARFLAGS = -rvu
40+
41+
# Flags for nemsiogfs library
42+
NEMSIOGFS_FFLAGS = $(OMPFLAGS) -O3 -FR
43+
44+
# Flags for sfcio library
45+
SFCIO_FFLAGS = -O3 -traceback -axCore-AVX2 -convert big_endian -assume byterecl -I$(INCMOD) -FR
46+
SFCIO_ARFLAGS = -ruv
47+
48+
# Flags for sigio library
49+
SIGIO_FFLAGS = $(OMPFLAGS) -O0 -g -xHOST -traceback -free -convert big_endian -assume byterecl -c -fPIC
50+
SIGIO_ARFLAGS = crvs
51+
52+
# Flags for sp library
53+
SP_FFLAGS = $(OMPFLAGS) -O3 -auto -i4 -r8 -convert big_endian -assume byterecl -fp-model strict -fpp -DLINUX -fPIC
54+
SP_ARFLAGS = -ruv
55+
56+
# Flags for w3emc library
57+
W3EMC_FFLAGS = $(OMPFLAGS) -O2 -g -traceback -fixed -c -fPIC
58+
W3EMC_ARFLAGS = ruv
59+
60+
# Flags for w3nco library
61+
W3NCO_FFLAGS = $(OMPFLAGS) -O0 -g -r8 -fixed -fPIC
62+
W3NCO_CFLAGS = $(OMPFLAGS) -O0 -DLINUX
63+
W3NCO_ARFLAGS = -ruv

make_ncep_libs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ THIS_FILE=$(basename "$0" )
3636
#--------------------------------------------------------------
3737
# Define available options
3838
#--------------------------------------------------------------
39-
validsystems=( theia jet gaea cheyenne macosx linux )
39+
validsystems=( hera theia jet gaea cheyenne macosx linux )
4040
validcompilers=( intel pgi gnu )
4141
validopenmpflags=( 0 1 )
4242
validmpiflags=( 0 1 )
@@ -112,8 +112,8 @@ fi
112112
# Check that all libraries are available on this platform
113113
#--------------------------------------------------------------
114114
if [ "$COMPILEALL" == "1" ]; then
115-
if [ "${SYSTEM}" != "cheyenne" -a "${SYSTEM}" != "macosx" -a "${SYSTEM}" != "theia" ]; then
116-
echo "ERROR: Compile all option (-a 1) only supported for 'cheyenne', 'macosx', and 'theia' at this time"
115+
if [ "${SYSTEM}" != "cheyenne" -a "${SYSTEM}" != "macosx" -a "${SYSTEM}" != "theia" -a "${SYSTEM}" != "hera" ]; then
116+
echo "ERROR: Compile all option (-a 1) only supported for 'cheyenne', 'macosx', 'theia' and 'hera' at this time"
117117
exit 1
118118
fi
119119
fi

0 commit comments

Comments
 (0)