documents fixed
[platform/upstream/caffeonacl.git] / Makefile
index 2422f3b..783d7c6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,5 @@
 PROJECT := caffe
 
-AIDDIR=/usr/local/AID
-export PKG_CONFIG_PATH=${AIDDIR}/opencv3.3.0/lib/pkgconfig
-
 CONFIG_FILE := Makefile.config.acl
 # Explicitly check for the config file, otherwise make -k will proceed anyway.
 ifeq ($(wildcard $(CONFIG_FILE)),)
@@ -332,7 +329,7 @@ ifeq ($(DEBUG), 1)
        COMMON_FLAGS += -DDEBUG -g -O0
        NVCCFLAGS += -G
 else
-       COMMON_FLAGS += -DNDEBUG -O2
+       COMMON_FLAGS += -DNDEBUG -O3
 endif
 
 # cuDNN acceleration configuration.
@@ -355,6 +352,10 @@ ifeq ($(USE_ACL), 1)
        COMMON_FLAGS += -DUSE_ACL -std=c++11
 endif
 
+ifeq ($(USE_OPENCL), 1)
+       COMMON_FLAGS += -DUSE_OPENCL
+endif
+
 #USE_PROFILING -- get profiling informations, is controled by LOGACL
 #LAYER_PERF_STAT -- haitao's net profiling information
 ifeq ($(USE_PROFILING), 1)
@@ -503,9 +504,9 @@ endif
 all: lib tools examples
 
 install:
-       install -d $(AIDDIR)/CaffeOnACL
-       cp -rfp ./distribute/* $(AIDDIR)/CaffeOnACL
-       chown -R root:root $(AIDDIR)/CaffeOnACL
+       install -d $(AIDDIR)/Caffe-HRT
+       cp -rfp ./distribute/* $(AIDDIR)/Caffe-HRT
+       chown -R root:root $(AIDDIR)/Caffe-HRT
 
 lib: $(STATIC_NAME) $(DYNAMIC_NAME)