2014-05-22 11:17:36 +02:00
|
|
|
OPENMP =1
|
|
|
|
PROFILE =0
|
2014-06-25 14:58:58 +02:00
|
|
|
DEBUG = 0
|
2014-05-22 11:17:36 +02:00
|
|
|
|
|
|
|
IRPF90_FLAGS+= --align=32
|
|
|
|
FC = ifort -g
|
2015-05-21 10:15:13 +02:00
|
|
|
#FC = cache_compile.py ifort -g # Accelerates compilation
|
2014-05-22 11:17:36 +02:00
|
|
|
FCFLAGS=
|
|
|
|
FCFLAGS+= -xHost
|
|
|
|
#FCFLAGS+= -xAVX
|
|
|
|
FCFLAGS+= -O2
|
|
|
|
FCFLAGS+= -ip
|
|
|
|
FCFLAGS+= -opt-prefetch
|
|
|
|
FCFLAGS+= -ftz
|
|
|
|
MKL=-mkl=parallel
|
|
|
|
|
|
|
|
ifeq ($(PROFILE),1)
|
|
|
|
FC += -p -g
|
|
|
|
CXX += -pg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OPENMP),1)
|
2014-10-08 23:24:55 +02:00
|
|
|
FC += -openmp
|
|
|
|
IRPF90_FLAGS += --openmp
|
|
|
|
CXX += -fopenmp
|
2014-05-22 11:17:36 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(DEBUG),1)
|
|
|
|
FC += -C -traceback -fpe0
|
2014-05-26 13:09:32 +02:00
|
|
|
FCFLAGS+= -axSSE2
|
|
|
|
IRPF90_FLAGS += -a
|
2014-05-22 11:17:36 +02:00
|
|
|
#FCFLAGS =-O0
|
|
|
|
endif
|