forked from sailing-pmls/pmls-caffe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defns-poseidon.mk
40 lines (36 loc) · 1.21 KB
/
defns-poseidon.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
# 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 = -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
PETUUM_CXXFLAGS += -static-libstdc++
# 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_DIRS = -Wl,-rpath,$(PETUUM_THIRD_PARTY_LIB) \
-L$(PETUUM_THIRD_PARTY_LIB)
PETUUM_LDFLAGS_LIBS = -pthread -lrt -lnsl -luuid \
-lzmq \
-lglog \
-lgflags \
-ltcmalloc \
-lconfig++ \
-lyaml-cpp \
-lleveldb \
-lnuma
PETUUM_PS_LIB = $(PETUUM_LIB)/libpetuum-ps.a
PETUUM_PS_SN_LIB = $(PETUUM_LIB)/libpetuum-ps-sn.a