This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathBUILD.gn
executable file
·242 lines (236 loc) · 8.39 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":vendor-nn-hal",
":intel_nnhal",
]
}
shared_library("vendor-nn-hal") {
configs += [
":target_defaults",
]
deps = [
":intel_nnhal",
]
libs = [
"pthread",
"rt",
"tensorflowlite",
"textclassifier",
]
}
config("target_defaults") {
cflags = [
"-Wall",
"-Wno-error",
"-Wextra",
"-Wno-unuse",
]
cflags_cc = [
"-std=c++17",
"-Wno-inconsistent-missing-override",
]
ldflags = [
"-Wl,--no-as-needed",
"-Wl,--no-undefined",
]
include_dirs = [
"${sysroot}/usr/include/aosp",
"${sysroot}/usr/include/aosp/frameworks/ml",
"${sysroot}/usr/include/aosp/frameworks/ml/nn/common/include",
"${sysroot}/usr/include/aosp/frameworks/ml/nn/runtime/include",
"${sysroot}/usr/include/aosp/frameworks/ml/nn/driver/cache",
]
}
shared_library("intel_nnhal") {
configs += [
":target_defaults",
"//common-mk:visibility_default",
]
cflags_cc = [
"-Wno-unused-parameter",
"-Wno-non-virtual-dtor",
"-Wno-missing-field-initializers",
"-Wno-extern-c-compat",
"-Wno-unused-private-field",
"-Wno-invalid-partial-specialization",
"-D_FORTIFY_SOURCE=2",
"-fexceptions",
"-fvisibility=default",
"-DIMPLEMENT_INFERENCE_ENGINE_API",
"-Wno-macro-redefined"
]
deps=[
":pugixml"
]
sources = [
"ngraph_creator/src/OperationsFactory.cpp",
"ngraph_creator/src/NgraphNetworkCreator.cpp",
"ngraph_creator/src/NgraphNodes.cpp",
"ngraph_creator/operations/src/Abs.cpp",
"ngraph_creator/operations/src/Add.cpp",
"ngraph_creator/operations/src/Argmax.cpp",
"ngraph_creator/operations/src/Argmin.cpp",
"ngraph_creator/operations/src/AveragePool2D.cpp",
"ngraph_creator/operations/src/BatchToSpace.cpp",
"ngraph_creator/operations/src/BidirectionalSequenceRNN.cpp",
"ngraph_creator/operations/src/Cast.cpp",
"ngraph_creator/operations/src/ChannelShuffle.cpp",
"ngraph_creator/operations/src/Concat.cpp",
"ngraph_creator/operations/src/Conv2d.cpp",
"ngraph_creator/operations/src/DepthToSpace.cpp",
"ngraph_creator/operations/src/DepthwiseConv2d.cpp",
"ngraph_creator/operations/src/Dequantize.cpp",
"ngraph_creator/operations/src/Div.cpp",
"ngraph_creator/operations/src/EmbeddingLookup.cpp",
"ngraph_creator/operations/src/Equal.cpp",
"ngraph_creator/operations/src/Exp.cpp",
"ngraph_creator/operations/src/ExpandDims.cpp",
"ngraph_creator/operations/src/Floor.cpp",
"ngraph_creator/operations/src/FullyConnected.cpp",
"ngraph_creator/operations/src/Gather.cpp",
"ngraph_creator/operations/src/GreaterEqual.cpp",
"ngraph_creator/operations/src/Greater.cpp",
"ngraph_creator/operations/src/GroupedConv2d.cpp",
"ngraph_creator/operations/src/HardSwish.cpp",
"ngraph_creator/operations/src/InstanceNormalization.cpp",
"ngraph_creator/operations/src/L2Normalization.cpp",
"ngraph_creator/operations/src/L2Pooling2D.cpp",
"ngraph_creator/operations/src/LessEqual.cpp",
"ngraph_creator/operations/src/Less.cpp",
"ngraph_creator/operations/src/Log.cpp",
"ngraph_creator/operations/src/LogSoftmax.cpp",
"ngraph_creator/operations/src/LogicalAnd.cpp",
"ngraph_creator/operations/src/LogicalNot.cpp",
"ngraph_creator/operations/src/LogicalOr.cpp",
"ngraph_creator/operations/src/Logistic.cpp",
"ngraph_creator/operations/src/LSTM.cpp",
"ngraph_creator/operations/src/MaxPool2d.cpp",
"ngraph_creator/operations/src/Maximum.cpp",
"ngraph_creator/operations/src/Mean.cpp",
"ngraph_creator/operations/src/Minimum.cpp",
"ngraph_creator/operations/src/Mul.cpp",
"ngraph_creator/operations/src/Neg.cpp",
"ngraph_creator/operations/src/NotEqual.cpp",
"ngraph_creator/operations/src/OperationsBase.cpp",
"ngraph_creator/operations/src/Pad.cpp",
"ngraph_creator/operations/src/PadV2.cpp",
"ngraph_creator/operations/src/Pow.cpp",
"ngraph_creator/operations/src/PRelu.cpp",
"ngraph_creator/operations/src/Quantize.cpp",
"ngraph_creator/operations/src/ReduceAll.cpp",
"ngraph_creator/operations/src/ReduceAny.cpp",
"ngraph_creator/operations/src/ReduceMax.cpp",
"ngraph_creator/operations/src/ReduceMin.cpp",
"ngraph_creator/operations/src/ReduceProd.cpp",
"ngraph_creator/operations/src/ReduceSum.cpp",
"ngraph_creator/operations/src/Relu.cpp",
"ngraph_creator/operations/src/Relu1.cpp",
"ngraph_creator/operations/src/Relu6.cpp",
"ngraph_creator/operations/src/Reshape.cpp",
"ngraph_creator/operations/src/RNN.cpp",
"ngraph_creator/operations/src/ROIAlign.cpp",
"ngraph_creator/operations/src/ROIPooling.cpp",
"ngraph_creator/operations/src/RSQRT.cpp",
"ngraph_creator/operations/src/ResizeBilinear.cpp",
"ngraph_creator/operations/src/ResizeNearestNeighbor.cpp",
"ngraph_creator/operations/src/Select.cpp",
"ngraph_creator/operations/src/Sin.cpp",
"ngraph_creator/operations/src/Softmax.cpp",
"ngraph_creator/operations/src/SpaceToBatch.cpp",
"ngraph_creator/operations/src/SpaceToDepth.cpp",
"ngraph_creator/operations/src/Split.cpp",
"ngraph_creator/operations/src/SQRT.cpp",
"ngraph_creator/operations/src/Squeeze.cpp",
"ngraph_creator/operations/src/StridedSlice.cpp",
"ngraph_creator/operations/src/Sub.cpp",
"ngraph_creator/operations/src/Tanh.cpp",
"ngraph_creator/operations/src/TopkV2.cpp",
"ngraph_creator/operations/src/TransposeConv2D.cpp",
"ngraph_creator/operations/src/Transpose.cpp",
"ngraph_creator/operations/src/UnidirectionalSequenceRNN.cpp",
"service.cpp",
"Driver.cpp",
"gna/GnaPreparedModel.cpp",
"utils.cpp",
"IENetwork.cpp",
"ModelManager.cpp",
"cpu/CpuPreparedModel.cpp",
"BasePreparedModel.cpp",
]
include_dirs = [
"./",
"ngraph_creator/include",
"ngraph_creator/operations/include",
"cpu",
"gna",
"intel_nn_hal",
"intel_nn_hal/graphAPI",
"intel_nn_hal/graphAPI/builderLayerNorm",
"intel_nn_hal/dl",
"../intel-openvino-dev/inference-engine/include",
"../intel-openvino-dev/inference-engine/include/cldnn",
"../intel-openvino-dev/inference-engine/include/cpp",
"../intel-openvino-dev/inference-engine/include/details",
"../intel-openvino-dev/inference-engine/include/details/os",
"../intel-openvino-dev/inference-engine/include/gna",
"../intel-openvino-dev/inference-engine/include/hetero",
"../intel-openvino-dev/inference-engine/include/mkldnn",
"../intel-openvino-dev/inference-engine/include/openvx",
"../intel-openvino-dev/inference-engine/include/vpu",
"../intel-openvino-dev/inference-engine/src/dumper",
"../intel-openvino-dev/inference-engine/src/inference_engine",
"../intel-openvino-dev/inference-engine/src/inference_engine/cpp_interfaces",
"../intel-openvino-dev/inference-engine/src/inference_engine/cpp_interfaces/base",
"../intel-openvino-dev/inference-engine/src/inference_engine/cpp_interfaces/impl",
"../intel-openvino-dev/inference-engine/src/inference_engine/cpp_interfaces/interface",
"../intel-openvino-dev/inference-engine/src/inference_engine/include/ie",
"../intel-openvino-dev/inference-engine/src/inference_engine/include/ie/cpp",
"../intel-openvino-dev/thirdparty/pugixml/src/",
"../intel-openvino-dev/ngraph/core/include",
]
libs = [
"pthread",
"rt",
"nnapi-support",
"ngraph",
"inference_engine",
"nn-common",
"ssl",
"crypto",
"MKLDNNPlugin"
]
lib_dirs = [
"${sysroot}/usr/local/deployment_tools/inference_engine/lib/intel64/",
"${sysroot}/usr/local/deployment_tools/ngraph/lib64/",
"${sysroot}/usr/local/lib64"
]
}
static_library("pugixml") {
configs += [
":target_defaults",
"//common-mk:pic",
]
cflags_cc = [
"-Wno-unused-variable",
"-Wno-unused-parameter",
"-Wno-non-virtual-dtor",
"-Wno-missing-field-initializers",
"-Wno-extern-c-compat",
"-Wno-unused-local-typedef",
"-Wno-unused-private-field",
"-Wno-invalid-partial-specialization",
"-Wno-array-bounds",
"-Wno-implicit-fallthrough",
"-D_FORTIFY_SOURCE=2",
"-fexceptions",
"-fvisibility=default",
"-DIMPLEMENT_INFERENCE_ENGINE_API",
]
sources = [
"../intel-openvino-dev/thirdparty/pugixml/src/pugixml.cpp"
]
include_dirs = [
"../intel-openvino-dev/thirdparty/pugixml/src",
]
}