-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
63 lines (52 loc) · 1.59 KB
/
Makefile.in
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
#----------- DMFTwDFT external libraries setup ------------------------------
#
# COMPILER : INTEL
#
# This Makefile compiles the required libraries from Professor Kristjan
# Haule's EDMFTF code to run DMFTwDFT.
#
# Libraries used from EDMFTF:
#
# - ctqmc
# - atomd
# - skrams
# - maxent_routines
# Set Fortran, C++ & gsl libraries in this file.
#
# You will need to set PC++, PFLAGS, PLIBS. For example, for MAC computer one would set:
# PC++ = mpicxx
# PFLAGS = -D_MPI -O3
# PLIBS = -framework Accelerate -lgsl -lgslcblas
#===========================================================================
#------------- SERIAL VERSION ----------------------------------------------
F90 = ifort
F77 = ifort
C++ = icpc
CC = icc
OPENMP = -fopenmp
FFLAGS = -O2 -free -no-prec-div -pc80 $(OPENMP)
OFLAGS = -O2
LALIB = -mkl
FFTLIB = -lfftw3_omp -lfftw3
FFTINC = -I/usr/include
GSLLIB = -lgslcblas -lgsl
GSLINC = -I/usr/include
PIC = -fPIC
WFOPT = -O2 -free -no-prec-div -pc80 $(OPENMP) $(FFTINC)
WLIBS = $(FFTLIB) $(LALIB)
F2PL =
F2PY_LAPACK = --link-lapack_opt
#------------- PARALLEL VERSION --------------------------------------------
Fmpi_define = -D_MPI
PF90 = mpiifort
PC++ = mpiicpc
PCC = mpiicc
PFLAGS = -D_MPI -DMPICH_IGNORE_CXX_SEEK -O3 #-restrict -ipo -no-prec-div
LLIBS = $(LALIB)
PLIBS = $(LLIBS) $(GSLLIB)
#
CMP = f2py --opt='-O2' --fcompiler=intelem # fortran to python converter
CMPLIBS = --f90flags='-fopenmp ' --opt='-fast' --opt='-fast' --link-lapack_opt
CMPLIBS2 = --f90flags=' $(OPENMP) ' $(CMPLIBS)
#
#============================================================================