From d09c5acbd72812b6d10ebcbd519d0db9dbd45cfa Mon Sep 17 00:00:00 2001
From: Juan ESCOBAR <juan.escobar@aero.obs-mip.fr>
Date: Wed, 1 Feb 2023 17:00:00 +0100
Subject: [PATCH] Juan 01/02/2023:Rules.LXarm.mk, TURPAN modif <-> -mcpu=native
 & use mnh_expand/spll_new

---
 src/Rules.LXarm.mk | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/Rules.LXarm.mk b/src/Rules.LXarm.mk
index 5ae81163a..e517a95b0 100644
--- a/src/Rules.LXarm.mk
+++ b/src/Rules.LXarm.mk
@@ -17,9 +17,11 @@ GFV=123
 OPT_BASE  =  -g -fno-backslash
 #OPT_BASE  =  -g -fPIC  -fno-backslash
 #
-OPT_PERF0 = -O0
-OPT_PERF2 = -O2 -mcpu=thunderx2t99
-OPT_PERF3 = -O3 -mcpu=thunderx2t99 -ffp-contract=fast
+OPT_PERF0 = -O0  -mcpu=native
+OPT_PERF2 = -O2  -mcpu=native
+# -mcpu=thunderx2t99 neoverse-n1
+OPT_PERF3 = -O3  -mcpu=native
+#-mcpu=thunderx2t99 -ffp-contract=fast
 OPT_CHECK = 
 OPT_I8    = -i8 
 OPT_R8    = -r8
@@ -81,13 +83,18 @@ FX90FLAGS     =  $(OPT)
 #
 # preprocessing flags 
 #
-CPP = cpp -P -traditional -Wcomment
+#CPP = cpp -P -traditional -Wcomment
+CPP = mnh_expand
 #
+CPPFLAGS_C         += -DLITTLE_endian
 CPPFLAGS_SURFEX    =
 CPPFLAGS_SURCOUCHE += -DDEV_NULL
 CPPFLAGS_RAD       =
 CPPFLAGS_NEWLFI    = -DSWAPIO -DLINUX -DLFI_INT=${LFI_INT}
 CPPFLAGS_MNH       = -DMNH -DSFX_MNH
+CPPFLAGS_MNH       += -imacros MNH_OPENACC_NV_CR.CPP
+CPPFLAGS_MNH       += -DMNH_EXPAND
+
 ifdef VER_GA
 CPPFLAGS_SURCOUCHE += -DMNH_GA
 INC                += -I${GA_ROOT}/include
@@ -162,3 +169,4 @@ $(OBJS_O0) : OPT = $(OPT_BASE) $(OPT_PERF0)
 endif
 endif
 
+SPLL = spll_new
-- 
GitLab