forked from aws/aws-graviton-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWRF-v45-patch-acfl.diff
53 lines (52 loc) · 2.39 KB
/
WRF-v45-patch-acfl.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff --git a/arch/configure.defaults b/arch/configure.defaults
index e7a98362..f3c97669 100644
--- a/arch/configure.defaults
+++ b/arch/configure.defaults
@@ -2126,14 +2126,14 @@ NETCDFPAR_BUILD = CONFIGURE_NETCDFPAR_BUILD
###########################################################
#ARCH Linux aarch64, GCC compiler OpenMPI # serial smpar dmpar dm+sm
#
-DESCRIPTION = GCC ($SFC/$SCC): Aarch64
+DESCRIPTION = armclang ($SFC/$SCC): Aarch64
DMPARALLEL =
OMPCPP = -fopenmp
OMP = -fopenmp
OMPCC = -fopenmp
-SFC = gfortran
-SCC = gcc
-CCOMP = gcc
+SFC = armflang
+SCC = armclang
+CCOMP = armclang
DM_FC = mpif90
DM_CC = mpicc -DMPI2_SUPPORT
FC = CONFIGURE_FC
@@ -2141,17 +2141,15 @@ CC = CONFIGURE_CC
LD = $(FC)
RWORDSIZE = CONFIGURE_RWORDSIZE
PROMOTION =
-ARCH_LOCAL = -DAARCH64_X86_CORRECTNESS_FIX
+ARCH_LOCAL =
CFLAGS_LOCAL = -w -O3 -c
LDFLAGS_LOCAL = -fopenmp
-FCOPTIM = -Ofast -mcpu=native -funroll-loops -fno-expensive-optimizations -fno-reciprocal-math -fsigned-zeros -fno-unsafe-math-optimizations
-# for graviton 2 use the folowing flag
-#FCOPTIM = -Ofast -march=armv8.2-a+fp16+rcpc+dotprod -funroll-loops -fno-expensive-optimizations -fno-reciprocal-math -fsigned-zeros -fno-unsafe-math-optimizations
+FCOPTIM = -Ofast -mcpu=native -funroll-loops
FCREDUCEDOPT = $(FCOPTIM)
FCNOOPT = -O0 -fopenmp -frecursive
FCDEBUG = -g $(FCNOOPT)
-FORMAT_FIXED = -ffixed-form -ffixed-line-length-0 -fallow-argument-mismatch -fallow-invalid-boz
-FORMAT_FREE = -ffree-form -ffree-line-length-0 -fallow-argument-mismatch -fallow-invalid-boz
+FORMAT_FIXED = -ffixed-form -ffixed-line-length-0
+FORMAT_FREE = -ffree-form -ffree-line-length-0
FCSUFFIX =
BYTESWAPIO = -fconvert=big-endian -frecord-marker=4
FCBASEOPTS = -w $(FORMAT_FREE) $(BYTESWAPIO)
@@ -2165,6 +2163,7 @@ RANLIB = ranlib
RLFLAGS =
CC_TOOLS = $(SCC)
+
###########################################################
#ARCH Linux aarch64, NVHPC compiler with nvc # serial smpar dmpar dm+sm
#