-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.inc
81 lines (75 loc) · 1.44 KB
/
make.inc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
ifndef COMPILER
COMPILER=GCC
endif
ifeq ($(COMPILER),Intel)
F90=ifx
CC=icx
FFLAGS=-standard-semantics -heap-arrays
#DEBUG=-g -traceback -check all
DEBUG=-g -traceback
FPP=-fpp
FOPT=-O3 -xHost -arch Host -qopenmp-simd
!FOPT=-O3 -xAVX # for Sandy Bridge
#FOPT=-O3 -xAVX2 # for Haswell
#FOPT=-O3 -xSKYLAKE-AVX512
#FOPT=-O3 -xSSE2
#FOPT=-O3
FPAR=-parallel
F_IEEE=-assume fpe_summary -assume ieee_fpe_flags
# the above is implied by -standard-semantics
#F_IEEE=
SOPT=-shared -fpic
endif
ifeq ($(COMPILER),GCC)
F90=gfortran-13
CC=gcc-13
FFLAGS=
DEBUG=-g -fbacktrace
FPP=-cpp
#FOPT=-O3 -march=opteron -msse3 -funroll-loops
FOPT=-O3 -march=sandybridge -mavx -funroll-loops
#FOPT=-Ofast -march=sandybridge -mavx
#FOPT=-Ofast -march=haswell -mavx2
#FOPT=-Ofast -march=skylake-avx512 -mtune=skylake-avx512
FPAR=-fopenmp
SOPT=-shared -fpic
endif
ifeq ($(COMPILER),NAG)
F90=nagfor
CC=gcc
FFLAGS=-f2018
#DEBUG=-g -mtrace -C=all
#DEBUG=-g -C=all
DEBUG=-g -C
FPP=-fpp
FOPT=-O3
FPAR=-openmp
F_IEEE=-ieee=full
SOPT=-Wl,-shared -pic
endif
ifeq ($(COMPILER),CRAY)
F90=ftn
CC=cc
FFLAGS=-e m
DEBUG=-g
endif
ifeq ($(COMPILER),NVidia)
F90=nvfortran
CC=nvc
FFLAGS=
DEBUG=-g
FOPT=-O3 -tp=haswell
#FOPT=-O3 -tp=skylake
FPP=-Mpreprocess
F_IEEE=-Kieee
# NOTE: the above only impacts precision, not exception handling
SOPT=-shared -fpic
endif
ifeq ($(COMPILER),IBM)
F90=xlf2003_r
CC=xlc_r
FFLAGS=
DEBUG=-g
FOPT=-O4 -q64 -qhot=vector -qcache=auto -qalias=noaryovrlp
FPP=-qsuffix=cpp=f90
endif