Skip to content

Commit

Permalink
Merge pull request dmlc#141 from piotr-teterwak/master
Browse files Browse the repository at this point in the history
Fixed makefile
  • Loading branch information
tqchen committed May 13, 2015
2 parents d7d5d03 + 54a0725 commit d32c38f
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 d32c38f

Please sign in to comment.