Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
108 changed files
with
11,771 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,28 +1,17 @@ | |||
# Compiled Object files | example/**/data | ||
*.slo | example/**/model | ||
*.lo | build | ||
*.o | third_party | ||
*.obj | **/log/** | ||
|
**/cache/** | ||
# Precompiled Headers | **/output/** | ||
*.gch | *.pb.cc | ||
*.pch | *.pb.h | ||
|
.* | ||
# Compiled Dynamic libraries | *core* | ||
*.so | config.mk | ||
*.dylib | **/bak/** | ||
*.dll | doc/html | ||
|
doc/latex | ||
# Fortran module files | test/ | ||
*.mod | test-bak | ||
|
|||
# Compiled Static libraries | |||
*.lai | |||
*.la | |||
*.a | |||
*.lib | |||
|
|||
# Executables | |||
*.exe | |||
*.out | |||
*.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,60 @@ | |||
ifneq ("$(wildcard ./config.mk)","") | |||
include ./config.mk | |||
else | |||
include make/config.mk | |||
endif | |||
|
|||
ifeq ($(STATIC_THIRD_LIB), 1) | |||
THIRD_LIB=$(addprefix $(THIRD_PATH)/lib/, libgflags.a libzmq.a libprotobuf.a libglog.a libz.a libsnappy.a) | |||
ifeq ($(USE_S3),1) | |||
THIRD_LIB+=$(addprefix $(THIRD_PATH)/lib/, libxml2.a) | |||
endif | |||
else | |||
THIRD_LIB=-L$(THIRD_PATH)/lib -lgflags -lzmq -lprotobuf -lglog -lz -lsnappy | |||
ifeq ($(USE_S3),1) | |||
THIRD_LIB+=-lxml2 | |||
endif | |||
endif | |||
|
|||
WARN = -Wall -Wno-unused-function -finline-functions -Wno-sign-compare #-Wconversion | |||
INCPATH = -I./src -I./include -I$(THIRD_PATH)/include | |||
CFLAGS = -std=c++0x $(WARN) $(OPT) $(INCPATH) $(EXTRA_CFLAGS) | |||
ifeq ($(USE_S3), 1) | |||
CFLAGS += -DUSE_S3=1 | |||
endif | |||
LDFLAGS = $(EXTRA_LDFLAGS) $(THIRD_LIB) -lpthread # -lrt | |||
|
|||
PS_LIB = build/libps.a | |||
PS_MAIN = build/libps_main.a | |||
# TEST_MAIN = build/test_main.o | |||
|
|||
clean: | |||
rm -rf build | |||
find src -name "*.pb.[ch]*" -delete | |||
|
|||
ps: $(PS_LIB) $(PS_MAIN) #$(TEST_MAIN) | |||
|
|||
# PS system | |||
ps_srcs = $(wildcard src/*.cc src/*/*.cc) | |||
ps_protos = $(wildcard src/proto/*.proto) | |||
ps_objs = $(patsubst src/%.proto, build/%.pb.o, $(ps_protos)) \ | |||
$(patsubst src/%.cc, build/%.o, $(ps_srcs)) | |||
|
|||
build/libps.a: $(patsubst %.proto, %.pb.h, $(ps_protos)) $(ps_objs) | |||
ar crv $@ $(filter %.o, $?) | |||
|
|||
build/libps_main.a: build/ps_main.o | |||
ar crv $@ $? | |||
|
|||
build/%.o: src/%.cc | |||
@mkdir -p $(@D) | |||
$(CC) $(INCPATH) -std=c++0x -MM -MT build/$*.o $< >build/$*.d | |||
$(CC) $(CFLAGS) -c $< -o $@ | |||
|
|||
%.pb.cc %.pb.h : %.proto | |||
${THIRD_PATH}/bin/protoc --cpp_out=./src --proto_path=./src $< | |||
|
|||
-include build/*/*.d | |||
-include build/*/*/*.d | |||
-include test/ps_test.mk | |||
-include guide/ps_guide.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,20 @@ | |||
# ps-lite | <img src="http://parameterserver.org/images/parameterserver.png" alt="Parameter Server" style="width: 500px;"> | ||
A light parameter server interface |
|
||
<!-- [xx](http://parameterserver.org/images/parameterserver.png) --> | |||
|
|||
The parameter server is a distributed system scaling to industry size machine | |||
learning problems. It provides asynchronous and zero-copy key-value pair | |||
communications between worker machines and server machines. It also supports | |||
flexiable data consistency model, data filters, and flexiable server machine | |||
programming. | |||
|
|||
- [Tutorial](guide/) | |||
- [API Document](doc/) | |||
- [Wiki](https://github.com/dmlc/parameter_server/wiki/) | |||
- How to [build](make/) | |||
- Examples | |||
- [Linear method](example/linear) | |||
- Deep neural network, see [CXXNET](https://github.com/dmlc/cxxnet) and [Minverva](https://github.com/minerva-developers/minerva) | |||
- Research papers: System | |||
[OSDI'14](http://www.cs.cmu.edu/~muli/file/parameter_server_osdi14.pdf), | |||
Algorithm [NIPS'14](http://www.cs.cmu.edu/~muli/file/parameter_server_nips14.pdf) |
Oops, something went wrong.