Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
0f6744e8
Commit
0f6744e8
authored
6 years ago
by
Juan Escobar
Browse files
Options
Downloads
Patches
Plain Diff
Juan 11/01/2019: For ARM architecture add Rules.LXarm.mk & change FPIC in Rules.LXgfortran.mk
parent
655a6ee3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Rules.LXarm.mk
+154
-0
154 additions, 0 deletions
src/Rules.LXarm.mk
src/Rules.LXgfortran.mk
+1
-1
1 addition, 1 deletion
src/Rules.LXgfortran.mk
with
155 additions
and
1 deletion
src/Rules.LXarm.mk
0 → 100644
+
154
−
0
View file @
0f6744e8
#MNH_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
#MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
#MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
#MNH_LIC for details. version 1.
##########################################################
# #
# Compiler Options #
# #
##########################################################
#
# Gfortran version
#GFV=$(shell gfortran --version | grep -E -m1 -o ' [[:digit:]\.]{2,}( |$$)' | sed 's/\.//g' )
GFV
=
123
#
#OBJDIR_PATH=/home/escj/azertyuiopqsdfghjklm/wxcvbn/azertyuiopqsdfghjklmwxcvbn
#
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_CHECK
=
OPT_I8
=
-i8
OPT_R8
=
-r8
#
#
# Real/Integer 4/8 option
#
MNH_REAL
?=
8
MNH_INT
?=
4
LFI_RECL
?=
512
#
#
ifneq
"$(MNH_REAL)" "4"
OPT_BASE
+=
$(
OPT_R8
)
CPPFLAGS_SURCOUCHE
+=
-DMNH_MPI_DOUBLE_PRECISION
endif
#
OPT_BASE_I4
:=
$(
OPT_BASE
)
ifeq
"$(MNH_INT)" "8"
OPT_BASE
+=
$(
OPT_I8
)
LFI_INT
?=
8
MNH_MPI_RANK_KIND
?=
8
else
MNH_MPI_RANK_KIND
?=
4
LFI_INT
?=
4
endif
#
#
OPT
=
$(
OPT_BASE
)
$(
OPT_PERF2
)
OPT0
=
$(
OPT_BASE
)
$(
OPT_PERF0
)
OPT_NOCB
=
$(
OPT_BASE
)
$(
OPT_PERF2
)
#
ifeq
"$(OPTLEVEL)" "DEBUG"
OPT
=
$(
OPT_BASE
)
$(
OPT_PERF0
)
$(
OPT_CHECK
)
OPT0
=
$(
OPT_BASE
)
$(
OPT_PERF0
)
$(
OPT_CHECK
)
OPT_NOCB
=
$(
OPT_BASE
)
$(
OPT_PERF0
)
CFLAGS
+=
-g
-O0
endif
#
ifeq
"$(OPTLEVEL)" "O3"
OPT
=
$(
OPT_BASE
)
$(
OPT_PERF3
)
OPT0
=
$(
OPT_BASE
)
$(
OPT_PERF0
)
OPT_NOCB
=
$(
OPT_BASE
)
$(
OPT_PERF3
)
endif
#
#
CC
=
armclang
FC
=
armflang
ifeq
"$(VER_MPI)" "MPIAUTO"
F90
=
mpif90
CPPFLAGS_SURCOUCHE
+=
-DMNH_USE_MPI_STATUSES_IGNORE
else
F90
=
armflang
endif
#
F90FLAGS
=
$(
OPT
)
F77
=
$(
F90
)
F77FLAGS
=
$(
OPT
)
FX90
=
$(
F90
)
FX90FLAGS
=
$(
OPT
)
#
#LDFLAGS = -Wl,-warn-once
#
# preprocessing flags
#
CPP
=
cpp
-P
-traditional
-Wcomment
#
CPPFLAGS_SURFEX
=
CPPFLAGS_SURCOUCHE
+=
-DMNH_LINUX
-DDEV_NULL
-DMNH_MPI_RANK_KIND
=
$(
MNH_MPI_RANK_KIND
)
CPPFLAGS_RAD
=
CPPFLAGS_NEWLFI
=
-DSWAPIO
-DLINUX
-DLFI_INT
=
${
LFI_INT
}
-DLFI_RECL
=
${
LFI_RECL
}
CPPFLAGS_MNH
=
-DMNH
-DSFX_MNH
ifdef
VER_GA
CPPFLAGS_SURCOUCHE
+=
-DMNH_GA
INC
+=
-I
${
GA_ROOT
}
/include
LIBS
+=
-L
${
GA_ROOT
}
/lib
-larmci
-lga
endif
#
# Gribex flags
#
TARGET_GRIBEX
=
linux
CNAME_GRIBEX
=
_gfortran
#
# Netcdf/HDF5 flags
#
HDF_CONF
=
CFLAGS
=
-std
=
c99
#
## LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools if gfortran >= 5.X
ifeq
"$(MNH_INT)" "4"
ifeq
($(shell test $(GFV) -ge 500 ; echo $$?),0)
MNH_TOOLS
=
yes
endif
endif
#
#
#
##########################################################
# #
# Source of MESONH PACKAGE Distribution #
# #
##########################################################
#
include
Makefile.MESONH.mk
#
##########################################################
# #
# extra VPATH, Compilation flag modification #
# systeme module , etc ... #
# external precompiled module librairie #
# etc ... #
# #
##########################################################
ifneq
"$(findstring 8,$(LFI_INT))" ""
OBJS_I8
=
spll_NEWLFI_ALL.o
$(OBJS_I8)
:
OPT = $(OPT_BASE) $(OPT_PERF2) $(OPT_I8)
endif
ifeq
"$(MNH_INT)" "8"
OBJS_I4
=
spll_modd_netcdf.o
$(OBJS_I4)
:
OPT = $(OPT_BASE_I4)
endif
ifeq
($(shell test $(GFV) -le 482 ; echo $$?),0)
ifneq
"$(OPTLEVEL)" "DEBUG"
OBJS_O0
=
spll_lima_phillips_integ.o
$(OBJS_O0)
:
OPT = $(OPT_BASE) $(OPT_PERF0)
endif
endif
This diff is collapsed.
Click to expand it.
src/Rules.LXgfortran.mk
+
1
−
1
View file @
0f6744e8
...
@@ -13,7 +13,7 @@ GFV=$(shell gfortran --version | grep -E -m1 -o ' [[:digit:]\.]{2,}( |$$)' | s
...
@@ -13,7 +13,7 @@ GFV=$(shell gfortran --version | grep -E -m1 -o ' [[:digit:]\.]{2,}( |$$)' | s
#
#
#OBJDIR_PATH=/home/escj/azertyuiopqsdfghjklm/wxcvbn/azertyuiopqsdfghjklmwxcvbn
#OBJDIR_PATH=/home/escj/azertyuiopqsdfghjklm/wxcvbn/azertyuiopqsdfghjklmwxcvbn
#
#
OPT_BASE
=
-g
-fno-second-underscore
-f
pic
-ffpe-trap
=
overflow,zero,invalid
-fbacktrace
OPT_BASE
=
-g
-fno-second-underscore
-f
PIC
-ffpe-trap
=
overflow,zero,invalid
-fbacktrace
#
#
OPT_PERF0
=
-O0
OPT_PERF0
=
-O0
OPT_PERF2
=
-O2
OPT_PERF2
=
-O2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment