forked from sailing-pmls/bosen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefns.mk
41 lines (37 loc) · 1.17 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
# 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_CXX = g++
PETUUM_CXXFLAGS = -g \
-O3 \
-std=c++11 \
-Wall \
-Wno-sign-compare \
-fno-builtin-malloc \
-fno-builtin-calloc \
-fno-builtin-realloc \
-fno-builtin-free \
-fno-omit-frame-pointer
# comment out if not planning to use petuum stats
PETUUM_CXXFLAGS += -DPETUUM_STATS
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 \
-libverbs \
-lrdmacm
PETUUM_PS_LIB = $(PETUUM_LIB)/libpetuum-ps.a
PETUUM_PS_SN_LIB = $(PETUUM_LIB)/libpetuum-ps-sn.a