Skip to content

Commit

Permalink
Fixed makefile
Browse files Browse the repository at this point in the history
To not depend on openmp or opencv if you don't want to take those
dependencies.
  • Loading branch information
piotr-teterwak committed May 13, 2015
1 parent d7d5d03 commit 54a0725
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ ifndef DMLC_CORE
DMLC_CORE = dmlc-core
endif

ifneq ($(USE_OPENMP_ITER),1)
export NO_OPENMP = 1
endif

# use customized config file
include $(config)
include mshadow/make/mshadow.mk
include $(DMLC_CORE)/make/dmlc.mk
unexport NO_OPENMP

# all tge possible warning tread
WARNFLAGS= -Wall
Expand Down Expand Up @@ -63,7 +68,10 @@ ifneq ($(ADD_LDFLAGS), NONE)
endif

# specify tensor path
BIN = bin/cxxnet bin/im2rec bin/bin2rec
BIN = bin/cxxnet
ifeq ($(USE_OPENCV),1)
BIN += bin/im2rec bin/bin2rec
endif
SLIB = wrapper/libcxxnetwrapper.so
OBJ = layer_cpu.o updater_cpu.o nnet_cpu.o main.o nnet_ps_server.o
OBJCXX11 = data.o
Expand Down
2 changes: 1 addition & 1 deletion src/utils/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Semaphore {
perror("sem_open");
exit(1);
}
utils::Assert(semPtr != NULL, "create Semaphore error");
mshadow::utils::Assert(semPtr != NULL, "create Semaphore error");
}
inline void Destroy(void) {
if (sem_close(semPtr) == -1) {
Expand Down

0 comments on commit 54a0725

Please sign in to comment.