Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix tiny bug in makefile when USE_CUDA=1
Browse files Browse the repository at this point in the history
  • Loading branch information
mli committed Sep 7, 2015
1 parent d02672e commit 13f2936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ all: lib/libmxnet.a lib/libmxnet.so $(BIN)
SRC = $(wildcard src/*.cc src/*/*.cc)
OBJ = $(patsubst src/%.cc, build/%.o, $(SRC))
CUSRC = $(wildcard src/*/*.cu)
CUOBJ = $(patsubst src/%.cu, build/%_gpu.o, $(CU_SRC))
CUOBJ = $(patsubst src/%.cu, build/%_gpu.o, $(CUSRC))

LIB_DEP = $(DMLC_CORE)/libdmlc.a
ALL_DEP = $(OBJ) $(LIB_DEP)
Expand All @@ -104,7 +104,7 @@ build/%_gpu.o: src/%.cu
$(CXX) $(CFLAGS) -MM -MT build/$*_gpu.o $< >build/$*_gpu.d
$(NVCC) -c -o $@ $(NVCCFLAGS) -Xcompiler "$(CFLAGS)" $<

lib/libmxnet.a: $(ALL_DEP)
lib/libmxnet.a: $(ALL_DEP)
ar crv $@ $(filter %.o, $?)

lib/libmxnet.so: $(ALL_DEP)
Expand Down

0 comments on commit 13f2936

Please sign in to comment.