forked from DOI-USGS/volcano-ash3d-metreader
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmake_aocc.inc
31 lines (25 loc) · 886 Bytes
/
make_aocc.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
###############################################################################
########## AMD Optimizing C/C++/Fortran Compiler (aocc) ######################
FCHOME = /opt/AMD/aocc-compiler-4.0.0
FC = $(FCHOME)/bin/flang
COMPINC = -I$(FCHOME)/include
COMPLIBS = -L./ -L$(FCHOME)/lib
LIBS = $(COMPLIBS) $(COMPINC)
# Debugging flags
ifeq ($(RUN), DEBUG)
FFLAGS = -O0 -g3 -Wall -Mstandard -fPIC -v
endif
# Profiling flags
ifeq ($(RUN), PROF)
FFLAGS = -g2 -pg -fPIC
endif
# Production run flags
ifeq ($(RUN), OPT)
#FFLAGS = -O3 -zopt -ftz -w -ipo
FFLAGS = -Ofast -fPIC -mavx -fplugin-arg-dragonegg-llvm-codegen-optimize=3 -fplugin-arg-dragonegg-llvm-ir-optimize=3
endif
# Preprocessing flags
FPPFLAGS = -Mpreprocess $(ncFPPFLAG) $(grbFPPFLAG) $(memFPPFLAG)
# Extra flags
EXFLAGS =
###############################################################################