Skip to content

Commit

Permalink
makefile: fixed the nvcc path
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangqing committed Nov 19, 2013
1 parent 391cccf commit d221841
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 @@ -55,7 +55,7 @@ NVCCFLAGS := -Xcompiler -fPIC -O2 $(COMMON_FLAGS)
LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) \
$(foreach library,$(LIBRARIES),-l$(library))

NVCC = nvcc $(NVCCFLAGS) $(CPPFLAGS) $(CUDA_ARCH)
NVCC = $(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CPPFLAGS) $(CUDA_ARCH)

.PHONY: all test clean distclean linecount examples pycaffe distribute

Expand Down Expand Up @@ -98,7 +98,7 @@ $(CU_OBJS): %.cuo: %.cu
$(NVCC) -c $< -o $@

$(PROTO_GEN_CC): $(PROTO_SRCS)
protoc --proto_path=src --cpp_out=src --python_out=src $(PROTO_SRCS)
protoc --proto_path=src --cpp_out=src $(PROTO_SRCS)
mkdir -p include/caffe/proto
cp $(PROTO_GEN_HEADER) include/caffe/proto/

Expand Down

0 comments on commit d221841

Please sign in to comment.