forked from DOI-USGS/volcano-ash3d-metreader
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmake_ifort.inc
30 lines (24 loc) · 954 Bytes
/
make_ifort.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
###############################################################################
########## Intel Fortran Compiler #############################################
FCHOME = /opt/intel/oneapi/compiler/latest/linux/
FC = $(FCHOME)/bin/intel64/ifort
COMPINC = -I./ -I$(FCHOME)/include
COMPLIBS = -L./ -L$(FCHOME)/lib -L$(FCHOME)/compiler/lib/intel64_lin
LIBS = $(COMPLIBS) $(COMPINC)
# Debugging flags
ifeq ($(RUN), DEBUG)
FFLAGS = -debug full -g3 -O0 -CB -init:snan,arrays -warn all -gen-interfaces -traceback -check all -check bounds -ftrapuv
endif
# Profiling flags
ifeq ($(RUN), PROF)
FFLAGS = -g2 -pg
endif
# Production run flags
ifeq ($(RUN), OPT)
FFLAGS = -O3 -unroll -unroll-aggressive -ftz -inline-forceinline -finline-functions -ipo -ip
endif
# Preprocessing flags
FPPFLAGS = -fpp $(ncFPPFLAG) $(grbFPPFLAG) $(memFPPFLAG)
# Extra flags
EXFLAGS =
###############################################################################