Skip to content

Commit

Permalink
Fixed server install, as daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
clementfarabet committed Jan 23, 2012
1 parent cbfdad8 commit 2cb6ce8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -17,7 +17,13 @@ include_directories (${TORCH_INCLUDE_DIR} ${PROJECT_SOURCE_DIR})
include_directories (${TORCH_INCLUDE_DIR} ${PROJECT_SOURCE_DIR})
add_library (allreduce SHARED init.cpp allreduce.cc)
link_directories (${TORCH_LIBRARY_DIR})
target_link_libraries (allreduce ${TORCH_LIBRARIES} )
target_link_libraries (allreduce ${TORCH_LIBRARIES})

add_executable(allserver cluster/spanning_tree.cc)

install_files(${INSTALL_PREFIX} init.lua)
install_targets(${CINSTALL_PREFIX} allreduce)

install(TARGETS allserver
RUNTIME DESTINATION bin
)
13 changes: 13 additions & 0 deletions cluster/Makefile
@@ -1,3 +1,16 @@
COMPILER = g++
LIBS = -l boost_program_options -l pthread -l z

ARCH = $(shell test `g++ -v 2>&1 | tail -1 | cut -d ' ' -f 3 | cut -d '.' -f 1,2` \< 4.3 && echo -march=nocona || echo -march=native)

BOOST_INCLUDE = /usr/include
BOOST_LIBRARY = /usr/local/lib

OPTIM_FLAGS = -O3 -fomit-frame-pointer -ffast-math -fno-strict-aliasing
WARN_FLAGS = -Wall -pedantic #-Werror

FLAGS = $(ARCH) $(WARN_FLAGS) $(OPTIM_FLAGS) -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE) #-DVW_LDA_NO_SSE

all: spanning_tree

%.o: %.cc %.h
Expand Down

0 comments on commit 2cb6ce8

Please sign in to comment.