forked from smorita/mptensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.option
55 lines (43 loc) · 1.48 KB
/
Makefile.option
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
##### default #####
# CXX = mpicxx
# CXXFLAGS = -O3
# LDFLAGS = -lscalapack
##### OpenMPI + Intel MKL #####
CXX = mpicxx
CXXFLAGS = -O3 -no-prec-div -xSSE2 -openmp -parallel -Wall -Wno-unknown-pragmas
LDFLAGS = -lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64 -mkl=parallel
##### MPICH + Intel MKL #####
# CXX = mpicxx
# CXXFLAGS = -O3 -no-prec-div -xSSE2 -openmp -parallel -Wall -Wno-unknown-pragmas
# LDFLAGS = -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64 -mkl=parallel
##### K computer #####
# CXX = mpiFCCpx
# CXXFLAGS = -Kfast,parallel,ocl,openmp -Koptmsg=2
# LDFLAGS = -SCALAPACK -SSL2BLAMP
##### ISSP System B (sekirei) #####
# CXX = mpicxx
# CXXFLAGS = -O3 -xCORE-AVX2 -qopenmp -parallel -Wall -Wno-unknown-pragmas
# LDFLAGS = -lmkl_scalapack_lp64 -lmkl_blacs_sgimpt_lp64 -mkl=parallel -lmpi
##### without MPI + Intel MKL #####
# CXX = icc -D_NO_MPI
# CXXFLAGS = -O3 -no-prec-div -xSSE2 -openmp -parallel -Wall -Wno-unknown-pragmas
# LDFLAGS = -mkl=parallel
##### Ubuntu 14.04, Linux Mint 17 #####
# CXX = mpicxx
# CXXFLAGS = -O3 -fopenmp
# LDFLAGS = -lscalapack-openmpi -lblacsCinit-openmpi -lblacs-openmpi -llapack -lblas
##### For RSVD #####
RANDOM = CPP11
# RANDOM = BOOST
# RANDOM = DSFMT
CXXFLAGS += -D_USE_RANDOM_${RANDOM}
ifeq (${RANDOM}, CPP11)
CXXFLAGS += -std=c++11
endif
ifeq (${RANDOM}, DSFMT)
DSFMT_DIR = /home/username/local/dSFMT
RANDOM_OBJ = ${DSFMT_DIR}/dSFMT.o
CXXFLAGS += -I${DSFMT_DIR}
endif
# If rsvd is unnecessary, uncomment the following line.
#CXXFLAGS += -D_NO_RANDOM