-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefileMKL.def
36 lines (27 loc) · 1.12 KB
/
MakefileMKL.def
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
###############################################################################
### Defines directories and specifics for Intel MKL-based Pardiso-solver
###############################################################################
### Change this to your directory
HOMEDIR = /path/to/HierarchicalBoltzmann
BASEDIR = /path/to/external/libraries
ODIR = $(HOMEDIR)/obj
SDIR = $(HOMEDIR)/src
IDIR = $(HOMEDIR)/include
### Set directoires for Eigen, Boost and MOAB
EIGEN_INCLUDE = $(BASEDIR)/eigen-3.2.10
BOOST_INCLUDE = $(BASEDIR)/boost_1_57_0
MOAB_BASE_DIR = $(BASEDIR)/moab-4.9.1
MOAB_INCLUDES = $(MOAB_BASE_DIR)/include
MOAB_LIBS_LINK = -L$(MOAB_BASE_DIR)/lib -lMOAB
MKL_LIBS_LINK = -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -lpthread -liomp5
CFLAGS = -I. -I$(IDIR) -I$(EIGEN_INCLUDE) -I$(MOAB_INCLUDES) -I$(BOOST_INCLUDE) -DMKL_ILP64 -DEIGEN_NO_DEBUG
LDLIBS = -lm $(MOAB_LIBS_LINK) $(MKL_LIBS_LINK)
CC = icc -O2
### general source files
SRC_ALL = main.cpp \
EigenSetup.cpp \
Mesh.cpp \
Numerics.cpp \
ElementAssembly.cpp \
Tools.cpp \
pardisoSolveMKL.cpp