project name fixed
[platform/upstream/caffeonacl.git] / Makefile.config.acl
1 ## Refer to http://caffe.berkeleyvision.org/installation.html
2 # Contributions simplifying and improving our build system are welcome!
3
4 # cuDNN acceleration switch (uncomment to build with cuDNN).
5 # USE_CUDNN := 1
6
7 AIDDIR=/usr/local/AID
8 export PKG_CONFIG_PATH=${AIDDIR}/opencv3.3.0/lib/pkgconfig
9
10 # CPU-only switch (uncomment to build without GPU support).
11 CPU_ONLY := 1
12
13 USE_PROFILING := 0
14
15 USE_ACL :=1
16 USE_OPENCL:=1
17 ACL_ROOT :=$(AIDDIR)/ComputeLibrary
18 ACL_INCS :=$(ACL_ROOT)/include 
19 ACL_INCS +=$(ACL_ROOT)
20 ACL_LIBS_DIR :=$(ACL_ROOT)/lib
21 ACL_LIBS_DIR +=$(ACL_ROOT)/arm_compute
22 ACL_LIBS :=arm_compute arm_compute_core OpenCL
23
24
25 # uncomment to disable IO dependencies and corresponding data layers
26 # USE_OPENCV := 0
27 # USE_LEVELDB := 0
28 # USE_LMDB := 0
29
30 # uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
31 #       You should not set this flag if you will be reading LMDBs with any
32 #       possibility of simultaneous read and write
33 # ALLOW_LMDB_NOLOCK := 1
34
35 # Uncomment if you're using OpenCV 3
36 OPENCV_VERSION := 3
37
38 # To customize your choice of compiler, uncomment and set the following.
39 # N.B. the default for Linux is g++ and the default for OSX is clang++
40 # CUSTOM_CXX := g++
41 #CUSTOM_CXX := aarch64-linux-gnu-g++
42 #os :=linux 
43 #arch :=arm64-v8a
44
45 # CUDA directory contains bin/ and lib/ directories that we need.
46 CUDA_DIR := ${AIDDIR}/cuda
47 # On Ubuntu 14.04, if cuda tools are installed via
48 # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
49 # CUDA_DIR := /usr
50
51 # CUDA architecture setting: going with all of them.
52 # For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
53 # For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
54 CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
55                 -gencode arch=compute_20,code=sm_21 \
56                 -gencode arch=compute_30,code=sm_30 \
57                 -gencode arch=compute_35,code=sm_35 \
58                 -gencode arch=compute_50,code=sm_50 \
59                 -gencode arch=compute_52,code=sm_52 \
60                 -gencode arch=compute_60,code=sm_60 \
61                 -gencode arch=compute_61,code=sm_61 \
62                 -gencode arch=compute_61,code=compute_61
63
64 # BLAS choice:
65 # atlas for ATLAS (default)
66 # mkl for MKL
67 # open for OpenBlas
68 #BLAS := atlas
69 BLAS := open
70 # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
71 # Leave commented to accept the defaults for your choice of BLAS
72 # (which should work)!
73 # BLAS_INCLUDE := /path/to/your/blas
74 # BLAS_LIB := /path/to/your/blas
75
76 # Homebrew puts openblas in a directory that is not on the standard search path
77 # BLAS_INCLUDE := $(shell brew --prefix openblas)/include
78 # BLAS_LIB := $(shell brew --prefix openblas)/lib
79
80 # This is required only if you will compile the matlab interface.
81 # MATLAB directory should contain the mex binary in /bin.
82 # MATLAB_DIR := /usr/local
83 # MATLAB_DIR := /Applications/MATLAB_R2012b.app
84
85 # NOTE: this is required only if you will compile the python interface.
86 # We need to be able to find Python.h and numpy/arrayobject.h.
87 PYTHON_INCLUDE := /usr/include/python2.7 \
88                 /usr/lib/python2.7/dist-packages/numpy/core/include
89 # Anaconda Python distribution is quite popular. Include path:
90 # Verify anaconda location, sometimes it's in root.
91 # ANACONDA_HOME := $(HOME)/anaconda
92 # PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
93                 # $(ANACONDA_HOME)/include/python2.7 \
94                 # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include
95
96 # Uncomment to use Python 3 (default is Python 2)
97 # PYTHON_LIBRARIES := boost_python3 python3.5m
98 # PYTHON_INCLUDE := /usr/include/python3.5m \
99 #                 /usr/lib/python3.5/dist-packages/numpy/core/include
100
101 # We need to be able to find libpythonX.X.so or .dylib.
102 PYTHON_LIB := /usr/lib
103 # PYTHON_LIB := $(ANACONDA_HOME)/lib
104
105 # Homebrew installs numpy in a non standard path (keg only)
106 # PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
107 # PYTHON_LIB += $(shell brew --prefix numpy)/lib
108
109 # Uncomment to support layers written in Python (will link against Python libs)
110 # WITH_PYTHON_LAYER := 1
111
112 # Whatever else you find you need goes here.
113 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
114 LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
115
116 # If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
117 # INCLUDE_DIRS += $(shell brew --prefix)/include
118 # LIBRARY_DIRS += $(shell brew --prefix)/lib
119
120 # NCCL acceleration switch (uncomment to build with NCCL)
121 # https://github.com/NVIDIA/nccl (last tested version: v1.2.3-1+cuda8.0)
122 # USE_NCCL := 1
123
124 # Uncomment to use `pkg-config` to specify OpenCV library paths.
125 # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
126 USE_PKG_CONFIG := 1
127
128
129 # N.B. both build and distribute dirs are cleared on `make clean`
130 BUILD_DIR := build
131 DISTRIBUTE_DIR := distribute
132
133 #HDF5
134 USE_HDF5 := 1
135 HDF5_INCLUDE_DIRS := /usr/include/hdf5/serial
136 HDF5_LIBRARY_DIRS := /usr/lib/aarch64-linux-gnu/hdf5/serial
137 HDF5_LIBRARIES :=hdf5_hl hdf5
138
139 # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
140 # DEBUG := 1
141
142 # The ID of the GPU that 'make runtest' will use to run unit tests.
143 TEST_GPUID := 0
144
145 # enable pretty build (comment to see full commands)
146 Q ?= @
147
148 ifeq ($(wildcard $(AIDDIR)),)
149 ACL_ROOT :=$(shell pwd)/../ComputeLibrary
150 ACL_INCS :=$(ACL_ROOT)/include
151 ACL_INCS +=$(ACL_ROOT)
152 ACL_LIBS_DIR :=$(ACL_ROOT)/build
153 OPENCV_VERSION :=
154 endif