-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakeinclude.Linux2_x86_64gfortmpi
53 lines (48 loc) · 1.57 KB
/
Makeinclude.Linux2_x86_64gfortmpi
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
# Version "$Id: Makeinclude.Linux2_x86_64gfortmpi 1 2017-06-10 18:05:20Z coats $"
#
# Build MPI/PnetCDF distributed-file support using "mpif90" and "mpcc",
# where compilers are built "on top of" Gnu compilers
#
# 12/2013 by CJC: Conditional preprocessor-code "-DNEED_ARGS=1"
# to implement IARGC() and GETARG() for compilers
# ("gfortran" version 4.8 or later to be exact) that insist on
# enforcing F2003-only with no backwards nor industry-standards compatibility.
#
# Remove "-DNEED_ARGS=1" from ARCHFLAGS for version 4.7.x and earlier
#
# Use "-march=native -mtune=native" if compile-platform and compute-platform
# are the same.
# Use "-Wall -Wsurprising" for full diagnostics.
#
# 08/2020 by CJC: gfortran version 10 requires Fortran-flag
#
# -fallow-argument-mismatch
#
# to deal with its idiosyncratic interpretation of the Fortran-2018 Standard.
# See the "Makeinclude.Linux2_x86_64gfort10*" files for how to do this...
AR = ar
CC = mpicc
CXX = mpiCC
FC = mpif90
M4 = m4
LINK = $(CC)
## Module-include-directory command
MODI = -I
E132 = -ffixed-line-length-132
MFLAGS = -ffast-math -funroll-loops -m64 # -Wall -Wsurprising -march=native -mtune=native
OMPFLAGS =
OMPLIBS =
COPTFLAGS = -O3 ${MFLAGS}
FOPTFLAGS = -O3 ${MFLAGS}
FPPFLAGS = -DF90=1 -DIOAPI_PNCF=1
FSFLAGS = -fno-automatic
ARCHFLAGS = \
-DAUTO_ARRAYS=1 \
-DF90=1 -DFLDMN=1 \
-DFSTR_L=int \
-DIOAPI_NO_STDOUT=1 \
-DNEED_ARGS=1
PARFLAGS =
ARCHLIB = -dynamic -L/usr/lib64 -lm -L /shared/build-hdf5 -lpthread -L/usr/lib64 -lc
M4DEFFILE = $(PVM_ROOT)/conf/$(PVM_ARCH).m4
PVMLIBS = -lpvm3