-
Notifications
You must be signed in to change notification settings - Fork 1
/
defns.mk
55 lines (46 loc) · 1.55 KB
/
defns.mk
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
# Requires PETUUM_ROOT to be defined
PETUUM_SRC = $(PETUUM_ROOT)/src
PETUUM_LIB = $(PETUUM_ROOT)/lib
PETUUM_THIRD_PARTY = $(PETUUM_ROOT)/third_party
PETUUM_THIRD_PARTY_SRC = $(PETUUM_THIRD_PARTY)/src
PETUUM_THIRD_PARTY_INCLUDE = $(PETUUM_THIRD_PARTY)/include
PETUUM_THIRD_PARTY_LIB = $(PETUUM_THIRD_PARTY)/lib
PETUUM_THIRD_PARTY_BIN = $(PETUUM_THIRD_PARTY)/bin
PETUUM_CXX = g++
PETUUM_CXXFLAGS = -O3 \
-std=c++11 \
-Wall \
-Wno-sign-compare \
-fno-builtin-malloc \
-fno-builtin-calloc \
-fno-builtin-realloc \
-fno-builtin-free
# PETUUM_CXXFLAGS += -DPETUUM_CHECK_DENSE_STORAGE_RANGE
# comment out if not planning to use petuum stats
PETUUM_CXXFLAGS += -DPETUUM_STATS
PETUUM_CXXFLAGS += -DPETUUM_NUMA
# PETUUM_CXXFLAGS += -DPETUUM_COMP_IMPORTANCE
PETUUM_INCFLAGS = -I$(PETUUM_SRC) -I$(PETUUM_THIRD_PARTY_INCLUDE)
PETUUM_LDFLAGS = -Wl,-rpath,$(PETUUM_THIRD_PARTY_LIB) \
-L$(PETUUM_THIRD_PARTY_LIB) \
-pthread -lrt -lnsl -luuid \
-lzmq \
-lboost_thread \
-lboost_system \
-lglog \
-lgflags \
-ltcmalloc \
-lconfig++ \
-lyaml-cpp \
-lleveldb
PETUUM_LDFLAGS += -lnuma
PETUUM_LDFLAGS += -lsnappy
# debug
#PETUUM_CXXFLAGS += -g
#PETUUM_CXXFLAGS += -fno-omit-frame-pointer
#PETUUM_CXXFLAGS += -fsanitize=address
#PETUUM_CXXFLAGS += -fno-common
#PETUUM_CXXFLAGS += -fsanitize=thread
PETUUM_PS_LIB = $(PETUUM_LIB)/libpetuum-ps.a
PETUUM_PS_SN_LIB = $(PETUUM_LIB)/libpetuum-ps-sn.a
PETUUM_ML_LIB = $(PETUUM_LIB)/libpetuum-ml.a