forked from lanl/LATTE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.CHOICES
93 lines (73 loc) · 1.99 KB
/
makefile.CHOICES
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# Compilation and link flags for LATTE
#
# Precision - double or single
PRECISION = DOUBLE
#PRECISION = SINGLE
# Make the latte library
# AR and RUNLIB executable default path to compile
# latte as a library (change accordingly)
MAKELIB = ON
AR = /usr/bin/ar cq
RANLIB = /usr/bin/ranlib
# Use PROGRESS and BML libraries
PROGRESS = OFF
PROGRESS_PATH= $(HOME)/qmd-progress/install/lib
BML_PATH= $(HOME)/bml/install/lib
# Use METIS library for graph partitioning
METIS = OFF
METIS_PATH= $(HOME)/metis/metis-5.1.0/install
# GPU available - OFF or ON
GPUOPT = OFF
# Using DBCSR library from cp2k? OFF or ON
DBCSR_OPT = OFF
# Parallelizing over k-points?
MPIOPT = OFF
#
# CPU Fortran options
#
#For GNU compiler:
#FC = mpif90
FC = gfortran
FCL = $(FC)
FFLAGS = -O3 -fopenmp -cpp
#FFLAGS = -fast -Mpreprocess -mp
LINKFLAG = -fopenmp
#For intel compiler:
#FC = ifort
#FCL = $(FC)
#FFLAGS = -O3 -fpp -qopenmp
#LINKFLAG = -qopenmp
#LIB = -mkl=parallel
#GNU BLAS/LAPACK libraries:
LIB = -llapack -lblas
#Intel MKL BLAS/LAPACK libraries:
#LIB = -Wl,--no-as-needed -L${MKLROOT}/lib/intel64 \
# -lmkl_lapack95_lp64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core \
# -lmkl_gnu_thread -lmkl_core -ldl -lpthread -lm
#Alternative flags for MKL:
#LIB += -mkl=parallel
#Other BLAS/LAPACK vendors:
#LIB = -framework Accelerate
#LIB = -L/usr/projects/hpcsoft/toss2/common/acml/5.3.1/gfortran64/lib -lacml
# Uncomment for coverage
#CVR = OFF
ifeq ($(CVR), ON)
FFLAGS += -fprofile-arcs -ftest-coverage
LINKFLAG += -fprofile-arcs -ftest-coverage
endif
ifeq ($(PROGRESS), ON)
LIB += -L$(PROGRESS_PATH) -lprogress -L$(BML_PATH) -lbml_fortran -lbml
FFLAGS += -I$(BML_PATH)/../include -I$(PROGRESS_PATH)/../include
endif
ifeq ($(GRAPH), ON)
LIB += -L$(METIS_PATH)/lib -lmetis
FFLAGS += -I$(METIS_PATH)/include
endif
#DBCSR_LIB = -L/home/cawkwell/cp2k/lib/cawkwell/popt -lcp2k_dbcsr_lib
#DBCSR_MOD = -I/home/cawkwell/cp2k/obj/cawkwell/popt
#
# GPU options
#
GPU_CUDA_LIB = -L/opt/cudatoolkit-5.5/lib64 -lcublas -lcudart
GPU_ARCH = sm_20