-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linux-x86-64-intel-minimal.popt
34 lines (32 loc) · 1.59 KB
/
Linux-x86-64-intel-minimal.popt
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
# Tested with: Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.4.196 Build 20170411
# Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.3.222 Build 20180410
# Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.5.274 Build 20180823
# Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.3.199 Build 20190206
# Intel MPI, MKL
# Author: Matthias Krack ([email protected], PSI, June 2019)
CC = mpiicc
CPP =
FC = mpiifort
LD = mpiifort
AR = ar -r
CPPFLAGS =
DFLAGS = -D__FFTW3 -D__MKL -D__MPI_VERSION=3 \
-D__parallel -D__SCALAPACK
CFLAGS = $(DFLAGS) -O2
FCFLAGS = $(DFLAGS) -O2 -xHost
FCFLAGS += -fpp -fp-model precise -free -funroll-loops
FCFLAGS += -g -traceback
FCFLAGS += -I${MKLROOT}/include -I${MKLROOT}/include/fftw
LDFLAGS = $(FCFLAGS) -static-intel -static_mpi
LDFLAGS_C = $(FCFLAGS) -static-intel -nofor_main
MKL_LIB = ${MKLROOT}/lib/intel64
LIBS = $(MKL_LIB)/libmkl_scalapack_lp64.a \
-Wl,--start-group \
$(MKL_LIB)/libmkl_intel_lp64.a \
${MKL_LIB}/libmkl_sequential.a \
$(MKL_LIB)/libmkl_core.a \
${MKL_LIB}/libmkl_blacs_intelmpi_lp64.a \
-Wl,--end-group
# Required due to memory leak that occurs if high optimisations are used
mp2_optimize_ri_basis.o: mp2_optimize_ri_basis.F
$(FC) -c $(subst O2,O0,$(FCFLAGS)) $<