blob: 95796730480cf56e7cc3c43f9c80c42a7e55f412 [file] [log] [blame]
Vidhya Sudhan Loganathand646ae12018-11-19 15:18:20 +00001///
Gian Marco Iodice716b1be2021-02-10 17:33:27 +00002/// Copyright (c) 2017-2021 Arm Limited.
Vidhya Sudhan Loganathand646ae12018-11-19 15:18:20 +00003///
4/// SPDX-License-Identifier: MIT
5///
6/// Permission is hereby granted, free of charge, to any person obtaining a copy
7/// of this software and associated documentation files (the "Software"), to
8/// deal in the Software without restriction, including without limitation the
9/// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10/// sell copies of the Software, and to permit persons to whom the Software is
11/// furnished to do so, subject to the following conditions:
12///
13/// The above copyright notice and this permission notice shall be included in all
14/// copies or substantial portions of the Software.
15///
16/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22/// SOFTWARE.
23///
Anthony Barbier3762e742018-03-02 11:49:33 +000024namespace arm_compute
25{
Anthony Barbier6ff3b192017-09-04 18:44:23 +010026/** @mainpage Introduction
27
28@tableofcontents
29
Sheri Zhangac6499a2021-02-10 15:32:38 +000030The Computer Vision and Machine Learning library is a set of functions optimised for both Arm CPUs and GPUs using SIMD technologies.
Anthony Barbier6ff3b192017-09-04 18:44:23 +010031
32Several builds of the library are available using various configurations:
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +000033 - OS: Linux, Android, macOS or bare metal.
Sheri Zhangac6499a2021-02-10 15:32:38 +000034 - Architecture: armv7a (32bit) or arm64-v8a (64bit).
35 - Technology: Neon / OpenCL / Neon and OpenCL.
Anthony Barbier6ff3b192017-09-04 18:44:23 +010036 - Debug / Asserts / Release: Use a build with asserts enabled to debug your application and enable extra validation. Once you are sure your application works as expected you can switch to a release build of the library for maximum performance.
37
38@section S0_1_contact Contact / Support
39
Michele Di Giorgioeca54a02021-02-16 15:37:59 +000040Please create an issue on <a href="https://github.com/ARM-software/ComputeLibrary/issues">Github</a>.
Anthony Barbier6ff3b192017-09-04 18:44:23 +010041
42In order to facilitate the work of the support team please provide the build information of the library you are using. To get the version of the library you are using simply run:
43
44 $ strings android-armv7a-cl-asserts/libarm_compute.so | grep arm_compute_version
45 arm_compute_version=v16.12 Build options: {'embed_kernels': '1', 'opencl': '1', 'arch': 'armv7a', 'neon': '0', 'asserts': '1', 'debug': '0', 'os': 'android', 'Werror': '1'} Git hash=f51a545d4ea12a9059fe4e598a092f1fd06dc858
46
Anthony Barbier14c86a92017-12-14 16:27:41 +000047@section S0_2_prebuilt_binaries Pre-built binaries
48
49For each release we provide some pre-built binaries of the library [here](https://github.com/ARM-software/ComputeLibrary/releases)
50
51These binaries have been built using the following toolchains:
Giorgio Arenacd7d1782021-02-22 14:58:37 +000052 - Linux armv7a: gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
53 - Linux arm64-v8a: gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu
Michele Di Giorgio36a551f2020-04-23 11:55:29 +010054 - Android armv7a: clang++ / libc++ NDK r18b
Giorgio Arenacd7d1782021-02-22 14:58:37 +000055 - Android am64-v8a: clang++ / libc++ NDK r20b
Anthony Barbier14c86a92017-12-14 16:27:41 +000056
57@warning Make sure to use a compatible toolchain to build your application or you will get some std::bad_alloc errors at runtime.
58
Anthony Barbier6ff3b192017-09-04 18:44:23 +010059@section S1_file_organisation File organisation
60
61This archive contains:
62 - The arm_compute header and source files
63 - The latest Khronos OpenCL 1.2 C headers from the <a href="https://www.khronos.org/registry/cl/">Khronos OpenCL registry</a>
64 - The latest Khronos cl2.hpp from the <a href="https://www.khronos.org/registry/cl/">Khronos OpenCL registry</a> (API version 2.1 when this document was written)
Anthony Barbier20dbb822017-12-13 21:19:39 +000065 - The latest Khronos EGL 1.5 C headers from the <a href="https://www.khronos.org/registry/gles/">Khronos EGL registry</a>
66 - The sources for a stub version of libOpenCL.so, libGLESv1_CM.so, libGLESv2.so and libEGL.so to help you build your application.
Anthony Barbier6ff3b192017-09-04 18:44:23 +010067 - An examples folder containing a few examples to compile and link against the library.
68 - A @ref utils folder containing headers with some boiler plate code used by the examples.
69 - This documentation.
70
Michele Di Giorgio552e11d2020-09-23 15:08:38 +010071 For detailed information about file organization, please refer to Files -> File List section of this documentation.
Anthony Barbier6ff3b192017-09-04 18:44:23 +010072
73@section S2_versions_changelog Release versions and changelog
74
75@subsection S2_1_versions Release versions
76
77All releases are numbered vYY.MM Where YY are the last two digits of the year, and MM the month number.
78If there is more than one release in a month then an extra sequential number is appended at the end:
79
80 v17.03 (First release of March 2017)
81 v17.03.1 (Second release of March 2017)
82 v17.04 (First release of April 2017)
83
84@note We're aiming at releasing one major public release with new features per quarter. All releases in between will only contain bug fixes.
85
86@subsection S2_2_changelog Changelog
87
Michalis Spyrou27e67f02021-02-16 11:34:39 +000088v21.05 Public major release
89 - Removed computer vision support from Neon backend
90 - Removed the following functions:
91 - NEAbsoluteDifference
92 - NEAccumulate
93 - NEBox3x3
94 - NECannyEdge
95 - NEChannelCombine
96 - NEChannelExtract
97 - NEColorConvert
98 - NEDerivative
99 - NEDilate
100 - NEEqualizeHistogram
101 - NEErode
102 - NEFastCorners
103 - NEGaussian3x3
104 - NEGaussian5x5
105 - NEGaussianPyramid
106 - NEHOGDescriptor
107 - NEHOGDetector
108 - NEHOGGradient
109 - NEHOGMultiDetection
110 - NEHarrisCorners
111 - NEHistogram
112 - NEIntegralImage
113 - NELaplacianPyramid
114 - NELaplacianReconstruct
115 - NEMagnitude
116 - NEMeanStdDev
117 - NEMedian3x3
118 - NEMinMaxLocation
119 - NENonLinearFilter
120 - NEOpticalFlow
121 - NEPhase
122 - NERemap
123 - NEScharr3x3
124 - NESobel3x3
125 - NESobel5x5
126 - NESobel7x7
127 - NETableLookup
128 - NEThreshold
129 - NEWarpAffine
130 - NEWarpPerspective
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +0000131 - Remove all GLES kernels / functions / tests / examples
132
Georgios Pinitas40f51a62020-11-21 03:04:18 +0000133v21.02 Public major release
Sheri Zhangda6a6eb2021-01-06 11:15:06 +0000134 - Various bug fixes.
135 - Various optimisations.
Georgios Pinitas45514032020-12-30 00:03:09 +0000136 - Upgrade C++ standard to C++14
137 - Add macOS support
Giorgio Arena1055dc12021-02-19 09:53:06 +0000138 - Add Armv8-R AArch64 architecture support
Sheri Zhangda6a6eb2021-01-06 11:15:06 +0000139 - Add SVE/SVE2 support for:
140 - @ref NEScaleKernel
141 - @ref NEActivationLayer
142 - @ref NEArithmeticAddition
143 - @ref NEBatchNormalizationLayerKernel
Giorgio Arena1055dc12021-02-19 09:53:06 +0000144 - @ref cpu::kernels::CpuLogits1DSoftmaxKernel
145 - @ref cpu::kernels::CpuLogits1DMaxKernel
146 - @ref cpu::kernels::CpuElementwiseUnaryKernel
Sheri Zhangdda69142021-02-01 19:06:57 +0000147 - Remove padding from OpenCL kernels:
148 - @ref CLDirectConvolutionLayerKernel
149 - @ref CLArgMinMaxLayerKernel
150 - @ref CLPadLayerKernel
151 - @ref CLROIAlignLayerKernel
152 - @ref CLRangeKernel
153 - @ref CLScaleKernel
154 - @ref CLSelectKernel
155 - @ref CLBitwiseKernel
Giorgio Arena1055dc12021-02-19 09:53:06 +0000156 - @ref opencl::kernels::ClFloorKernel
Sheri Zhangdda69142021-02-01 19:06:57 +0000157 - @ref CLTransposeKernel
Giorgio Arena5b50f422021-02-17 11:43:05 +0000158 - Deprecate functions in CLTuner:
159 - add_lws_to_table
160 - import_lws_table
161 - lws_table
Sheri Zhangda6a6eb2021-01-06 11:15:06 +0000162 - Remove functions:
Georgios Pinitas96b16b62020-12-01 17:41:34 +0000163 - NELocallyConnectedLayer / CLLocallyConnectedLayer
Georgios Pinitasf7c5a412020-12-03 14:38:33 +0000164 - NEIm2Col
165 - NECol2Im
166 - NEGEMMInterleave4x4
167 - NEGEMMTranspose1xW
Georgios Pinitas8c3c0e72020-12-03 20:11:53 +0000168 - NEComputeAllAnchors / CLComputeAllAnchors
Georgios Pinitasec2256b2020-12-03 18:51:58 +0000169 - NEGEMMAssemblyDispatch
Georgios Pinitasc53266e2020-12-09 03:11:53 +0000170 - NEUpsampleLayer / CLUpsampleLayer
Sheri Zhangda6a6eb2021-01-06 11:15:06 +0000171 - Remove kernels:
Georgios Pinitasd308df32020-12-01 16:56:36 +0000172 - NEGEMMMatrixVectorMultiplyKernel
Georgios Pinitas96b16b62020-12-01 17:41:34 +0000173 - NELocallyConnectedMatrixMultiplyKernel / CLLocallyConnectedMatrixMultiplyKernel
Georgios Pinitasc53266e2020-12-09 03:11:53 +0000174 - NEUpsampleLayerKernel / CLUpsampleLayerKernel
Gian Marco Iodicef5aad512021-02-08 17:34:40 +0000175 - Extend OpenCL tuner with workgroup batch size support
176 - Experimental extension for the OpenCL tuner to tune the batches of work groups distribute to compute units
Gian Marco Iodice716b1be2021-02-10 17:33:27 +0000177 - Add functionality to load the OpenCL GEMM heuristics at runtime
178 - The GEMM heuristic file (MLGO) can be used to update the default GEMM heuristics available for OpenCL
Giorgio Arenacd7d1782021-02-22 14:58:37 +0000179 - Note: there might be performance regressions against v20.08 in Inception v3 using int8 data types on Arm Mali-G77 GPUs. Currently under investigation
Georgios Pinitas40f51a62020-11-21 03:04:18 +0000180
SiCong Li96209c72020-08-21 12:28:30 +0100181v20.11 Public major release
morgolock70b1eb82020-11-24 13:54:19 +0000182 - Various bug fixes.
183 - Various optimisations.
184 - Performance regressions can be noted when executing Depthwise Convolution on Neon with a depth multiplier > 1 for quantized data type.
morgolock0e728492020-11-20 11:03:33 +0000185 This is planned to be resolved in 21.02 release.
morgolock70b1eb82020-11-24 13:54:19 +0000186 - Added new data type QASYMM8_SIGNED support for @ref NEROIAlignLayer.
SiCong Li903f8cc2020-08-27 10:17:10 +0100187 - Added new data type S32 support for:
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000188 - NEArithmeticSubtraction
189 - NEArithmeticSubtractionKernel
SiCong Libb88f892020-08-28 11:18:47 +0100190 - @ref NEPixelWiseMultiplication
191 - @ref NEPixelWiseMultiplicationKernel
Sang-Hoon Park63001ac2021-01-18 14:20:27 +0000192 - NEElementwiseDivision
193 - NEDivisionOperationKernel
SiCong Li96209c72020-08-21 12:28:30 +0100194 - Interface change
195 - Properly support softmax axis to have the same meaning as other major frameworks. That is, axis now defines the dimension
196 on which Softmax/Logsoftmax is performed. E.g. for input of shape 4x5x6 and axis=1, softmax will be applied to 4x6=24 vectors of size 5.
197 The supported value range of axis is [-rank, rank).
198 This change applies to the following functions:
199 - @ref NESoftmaxLayer
200 - @ref NELogSoftmaxLayer
201 - @ref CLSoftmaxLayer
202 - @ref CLLogSoftmaxLayer
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +0000203 - GCSoftmaxLayer
Sheri Zhang824061d2020-10-26 15:46:37 +0000204 - New OpenCL kernels / functions:
205 - @ref CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel
morgolock0e728492020-11-20 11:03:33 +0000206 - @ref CLLogicalNot
207 - @ref CLLogicalAnd
208 - @ref CLLogicalOr
Sheri Zhangac6499a2021-02-10 15:32:38 +0000209 - New Neon kernels / functions:
morgolock0e728492020-11-20 11:03:33 +0000210 - @ref NELogicalNot
211 - @ref NELogicalAnd
212 - @ref NELogicalOr
Sheri Zhangac6499a2021-02-10 15:32:38 +0000213 - Removed padding from Neon kernels:
Sheri Zhanged367132020-10-08 15:46:16 +0100214 - @ref NEComplexPixelWiseMultiplicationKernel
215 - @ref NENonMaximaSuppression3x3Kernel
Michalis Spyrou27e67f02021-02-16 11:34:39 +0000216 - NERemapKernel
Sheri Zhanged367132020-10-08 15:46:16 +0100217 - @ref NEGEMMInterleave4x4Kernel
218 - @ref NEDirectConvolutionLayerKernel
219 - @ref NEScaleKernel
Georgios Pinitas96b16b62020-12-01 17:41:34 +0000220 - NELocallyConnectedMatrixMultiplyKernel
Sheri Zhanged367132020-10-08 15:46:16 +0100221 - @ref NEGEMMLowpOffsetContributionKernel
222 - @ref NEGEMMTranspose1xWKernel
Michele Di Giorgio19289042021-02-03 16:05:00 +0000223 - NEPoolingLayerKernel
Sheri Zhanged367132020-10-08 15:46:16 +0100224 - @ref NEConvolutionKernel
225 - @ref NEDepthwiseConvolutionLayerNativeKernel
226 - @ref NEGEMMLowpMatrixMultiplyKernel
227 - @ref NEGEMMMatrixMultiplyKernel
228 - @ref NEDirectConvolutionLayerOutputStageKernel
229 - @ref NEReductionOperationKernel
230 - @ref NEGEMMLowpMatrixAReductionKernel
231 - @ref NEGEMMLowpMatrixBReductionKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000232 - Removed padding from OpenCL kernels:
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +0000233 - CLBatchConcatenateLayerKernel
Michele Di Giorgio1e0208a2021-01-22 15:42:59 +0000234 - CLElementwiseOperationKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000235 - @ref CLBatchNormalizationLayerKernel
Michele Di Giorgioe1314662021-02-01 17:09:32 +0000236 - CLPoolingLayerKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000237 - @ref CLWinogradInputTransformKernel
238 - @ref CLGEMMLowpMatrixMultiplyNativeKernel
239 - @ref CLGEMMLowpMatrixAReductionKernel
240 - @ref CLGEMMLowpMatrixBReductionKernel
241 - @ref CLGEMMLowpOffsetContributionOutputStageKernel
242 - @ref CLGEMMLowpOffsetContributionKernel
243 - @ref CLWinogradOutputTransformKernel
244 - @ref CLGEMMLowpMatrixMultiplyReshapedKernel
245 - @ref CLFuseBatchNormalizationKernel
246 - @ref CLDepthwiseConvolutionLayerNativeKernel
247 - @ref CLDepthConvertLayerKernel
Sheri Zhang7e20e292021-02-02 11:49:34 +0000248 - CLCopyKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000249 - @ref CLDepthwiseConvolutionLayer3x3NHWCKernel
Georgios Pinitasf47f7182021-01-15 09:29:50 +0000250 - CLActivationLayerKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000251 - @ref CLWinogradFilterTransformKernel
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +0000252 - CLWidthConcatenateLayerKernel
253 - CLWidthConcatenate4TensorsKernel
254 - CLWidthConcatenate2TensorsKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000255 - @ref CLLogits1DMaxShiftExpSumKernel
256 - @ref CLLogits1DNormKernel
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +0000257 - CLHeightConcatenateLayerKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000258 - @ref CLGEMMMatrixMultiplyKernel
259 - @ref CLGEMMLowpQuantizeDownInt32ScaleKernel
260 - @ref CLGEMMLowpQuantizeDownInt32ScaleByFloatKernel
261 - @ref CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +0000262 - CLDepthConcatenateLayerKernel
Sheri Zhang824061d2020-10-26 15:46:37 +0000263 - @ref CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel
264 - Removed OpenCL kernels / functions:
265 - CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel
266 - CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel
267 - CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel
morgolock00c76012020-11-06 10:40:12 +0000268 - Deprecated OpenCL kernels / functions (If a kernel is used only by the function that is being deprecated, the kernel is deprecated together):
Georgios Pinitas2d221392020-09-03 15:16:37 +0100269 - CLLocallyConnectedLayer
270 - CLLocallyConnectedMatrixMultiplyKernel
morgolock00c76012020-11-06 10:40:12 +0000271 - CLAbsoluteDifference
272 - CLAbsoluteDifferenceKernel
273 - CLAccumulate
274 - CLAccumulateKernel
275 - CLAccumulateSquared
276 - CLAccumulateSquaredKernel
277 - CLAccumulateWeighted
278 - CLAccumulateWeightedKernel
279 - CLAccumulateWeightedFP16Kernel
280 - CLBox3x3
281 - CLBox3x3Kernel
282 - CLBox3x3FP16Kernel
283 - CLCannyEdge
284 - CLChannelCombine
285 - CLChannelCombineKernel
286 - CLChannelExtract
287 - CLChannelExtractKernel
288 - CLColorConvert
289 - CLColorConvertKernel
290 - CLConvolution3x3
291 - CLConvolutionRectangle
292 - CLConvolutionRectangleKernel
293 - CLConvolutionSquare
294 - CLConvolutionKernel
295 - CLDerivative
296 - CLDerivativeKernel
297 - CLDilate
298 - CLDilateKernel
299 - CLEqualizeHistogram
300 - CLErode
301 - CLErodeKernel
302 - CLFastCorners
303 - CLFastCornersKernel
304 - CLGaussian3x3
305 - CLGaussian3x3Kernel
306 - CLGaussian5x5
307 - CLGaussian5x5HorKernel
308 - CLGaussian5x5VertKernel
309 - CLGaussianPyramid
310 - CLGaussianPyramidHalf
311 - CLGaussianPyramidOrb
312 - CLHarrisCorners
313 - CLHarrisScoreKernel
314 - CLHarrisScoreFP16Kernel
315 - CLHistogram
316 - CLHistogramKernel
317 - CLHOGOrientationBinningKernel
318 - CLHOGBlockNormalizationKernel
319 - CLHOGDetectorKernel
320 - CLHOGNonMaximaSuppressionKernel
321 - CLHOGDescriptor
322 - CLHOGDetector
323 - CLHOGGradient
324 - CLHOGMultiDetection
325 - CLHOGOrientationBinningKernel
326 - CLHOGBlockNormalizationKernel
327 - CLHOGDetectorKernel
328 - CLIntegralImage
329 - CLIntegralImageKernel
330 - CLLaplacianReconstruct
331 - CLLaplacianPyramid
332 - CLMagnitude
333 - CLMagnitudePhaseKernel
334 - CLMedian3x3
335 - CLMedian3x3Kernel
336 - CLMinMaxLocation
337 - CLMinMaxLocationKernel
338 - CLNonLinearFilter
339 - CLNonLinearFilterKernel
340 - CLNonMaximaSuppression3x3
341 - CLNonMaximaSuppression3x3FP16Kernel
342 - CLNonMaximaSuppression3x3Kernel
343 - CLOpticalFlow
344 - CLPhase
345 - CLRemap
346 - CLRemapKernel
347 - CLScharr3x3
348 - CLScharr3x3Kernel
349 - CLSobel3x3
350 - CLSobel3x3Kernel
351 - CLSobel5x5
352 - CLSobel5x5HorKernel
353 - CLSobel5x5VertKernel
354 - CLSobel7x7
355 - CLSobel7x7HorKernel
356 - CLSobel7x7VertKernel
357 - CLThreshold
358 - CLThresholdKernel
359 - CLWarpAffine
360 - CLWarpAffineKernel
361 - CLWarpPerspective
362 - CLWarpPerspectiveKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +0000363 - Deprecated Neon kernels / functions (If a kernel is used only by the function that is being deprecated, the kernel is deprecated together):
Georgios Pinitas2d221392020-09-03 15:16:37 +0100364 - NELocallyConnectedLayer
365 - NELocallyConnectedMatrixMultiplyKernel
morgolock0c862652020-11-06 08:59:45 +0000366 - NEAbsoluteDifference
367 - NEAbsoluteDifferenceKernel
368 - NEAccumulate
369 - NEAccumulateKernel
370 - NEAccumulateSquared
371 - NEAccumulateSquaredKernel
372 - NEAccumulateWeighted
373 - NEAccumulateWeightedKernel
374 - NEAccumulateWeightedFP16Kernel
375 - NEBox3x3
376 - NEBox3x3Kernel
377 - NEBox3x3FP16Kernel
378 - NECannyEdge
379 - NEChannelCombine
380 - NEChannelCombineKernel
381 - NEChannelExtract
382 - NEChannelExtractKernel
383 - NEColorConvert
384 - NEColorConvertKernel
385 - NEConvolution3x3
386 - NEConvolutionRectangle
387 - NEConvolutionRectangleKernel
388 - NEConvolutionSquare
389 - NEConvolutionKernel
390 - NEDerivative
391 - NEDerivativeKernel
392 - NEDilate
393 - NEDilateKernel
394 - NEEqualizeHistogram
395 - NEErode
396 - NEErodeKernel
397 - NEFastCorners
398 - NEFastCornersKernel
399 - NEGaussian3x3
400 - NEGaussian3x3Kernel
401 - NEGaussian5x5
402 - NEGaussian5x5HorKernel
403 - NEGaussian5x5VertKernel
404 - NEGaussianPyramid
405 - NEGaussianPyramidHalf
406 - NEGaussianPyramidOrb
407 - NEHarrisCorners
408 - NEHarrisScoreKernel
409 - NEHarrisScoreFP16Kernel
410 - NEHistogram
411 - NEHistogramKernel
412 - NEHOGOrientationBinningKernel
413 - NEHOGBlockNormalizationKernel
414 - NEHOGDetectorKernel
415 - NEHOGNonMaximaSuppressionKernel
416 - NEHOGDescriptor
417 - NEHOGDetector
418 - NEHOGGradient
419 - NEHOGMultiDetection
420 - NEHOGOrientationBinningKernel
421 - NEHOGBlockNormalizationKernel
422 - NEHOGDetectorKernel
423 - NEIntegralImage
424 - NEIntegralImageKernel
425 - NELaplacianReconstruct
426 - NELaplacianPyramid
427 - NEMagnitude
428 - NEMagnitudePhaseKernel
429 - NEMedian3x3
430 - NEMedian3x3Kernel
431 - NEMinMaxLocation
432 - NEMinMaxLocationKernel
433 - NENonLinearFilter
434 - NENonLinearFilterKernel
435 - NENonMaximaSuppression3x3
436 - NENonMaximaSuppression3x3FP16Kernel
437 - NENonMaximaSuppression3x3Kernel
438 - NEOpticalFlow
439 - NEPhase
440 - NERemap
441 - NERemapKernel
442 - NEScharr3x3
443 - NEScharr3x3Kernel
444 - NESobel3x3
445 - NESobel3x3Kernel
446 - NESobel5x5
447 - NESobel5x5HorKernel
448 - NESobel5x5VertKernel
449 - NESobel7x7
450 - NESobel7x7HorKernel
451 - NESobel7x7VertKernel
452 - NEThreshold
453 - NEThresholdKernel
454 - NEWarpAffine
455 - NEWarpAffineKernel
456 - NEWarpPerspective
457 - NEWarpPerspectiveKernel
morgolockd6ee9ed2020-11-19 10:07:14 +0000458 - Deprecated GLES kernels / functions (If a kernel is used only by the function that is being deprecated, the kernel is deprecated together):
459 - GCAbsoluteDifference
460 - GCActivationLayer
461 - GCArithmeticAddition
462 - GCBatchNormalizationLayer
463 - GCConcatenateLayer
464 - GCConvolutionLayer
465 - GCDepthwiseConvolutionLayer
466 - GCDirectConvolutionLayer
467 - GCDropoutLayer
468 - GCFillBorder
469 - GCFullyConnectedLayer
470 - GCGEMM
471 - GCGEMMInterleave4x4
472 - GCGEMMTranspose1xW
473 - GCNormalizationLayer
474 - GCNormalizePlanarYUVLayer
475 - GCPixelWiseMultiplication
476 - GCPoolingLayer
477 - GCScale
478 - GCSoftmaxLayer
479 - GCTensorShift
480 - GCTranspose
481
SiCong Li96209c72020-08-21 12:28:30 +0100482
Georgios Pinitas25ef7212020-06-02 23:00:41 +0100483v20.08 Public major release
484 - Various bug fixes.
485 - Various optimisations.
Sheri Zhang3ef9b5f2020-07-09 16:32:58 +0100486 - Added new data type QASYMM8_SIGNED support for:
Sheri Zhangdd4cfc02020-07-10 14:15:41 +0100487 - @ref CLArgMinMaxLayer
488 - @ref CLArgMinMaxLayerKernel
489 - Added new data type U8 support for:
490 - @ref NECropKernel
Sheri Zhang7e20e292021-02-02 11:49:34 +0000491 - CLCropKernel
Sheri Zhangdd4cfc02020-07-10 14:15:41 +0100492 - Added aligh_corner support for nearest neighbor interpolation in:
493 - @ref NEScaleKernel
494 - @ref CLScaleKernel
495 - New OpenCL kernels / functions:
496 - @ref CLMaxUnpoolingLayerKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +0000497 - New Neon kernels / functions:
Sheri Zhangdd4cfc02020-07-10 14:15:41 +0100498 - @ref NEMaxUnpoolingLayerKernel
Sheri Zhang3ef9b5f2020-07-09 16:32:58 +0100499 - New graph example:
Sheri Zhangdd4cfc02020-07-10 14:15:41 +0100500 - graph_yolov3_output_detector
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100501 - GEMMTuner improvements:
502 - Added fp16 support
503 - Output json files for easier integration
504 - Enabled tuning for export_to_cl_image_rhs option for RHS tensors
505 - More robust script for running benchmarks
Sheri Zhang3ef9b5f2020-07-09 16:32:58 +0100506 - Removed padding from:
Sheri Zhangdd4cfc02020-07-10 14:15:41 +0100507 - @ref NEPixelWiseMultiplicationKernel
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000508 - NEHeightConcatenateLayerKernel
Michalis Spyrou27e67f02021-02-16 11:34:39 +0000509 - NEThresholdKernel
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000510 - NEBatchConcatenateLayerKernel
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100511 - @ref NETransposeKernel
512 - @ref NEBatchNormalizationLayerKernel
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000513 - NEArithmeticSubtractionKernel
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100514 - @ref NEBoundingBoxTransformKernel
Michalis Spyrou373b4072021-01-20 16:41:12 +0000515 - NELogits1DMaxKernel
516 - NELogits1DSoftmaxKernel
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100517 - @ref NEROIPoolingLayerKernel
518 - @ref NEROIAlignLayerKernel
Georgios Pinitas0b1c2db2020-12-04 15:51:34 +0000519 - NEYOLOLayerKernel
Georgios Pinitasc53266e2020-12-09 03:11:53 +0000520 - NEUpsampleLayerKernel
Georgios Pinitas70eb53b2021-01-06 19:42:21 +0000521 - NEFloorKernel
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000522 - NEWidthConcatenateLayerKernel
523 - NEDepthConcatenateLayerKernel
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100524 - @ref NENormalizationLayerKernel
525 - @ref NEL2NormalizeLayerKernel
526 - @ref NEFillArrayKernel
527 - @ref NEDepthConvertLayerKernel
528 - @ref NERangeKernel
529 - @ref NEPriorBoxLayer
Sheri Zhanged367132020-10-08 15:46:16 +0100530 - Removed OpenCL kernels / functions:
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100531 - CLGEMMLowpQuantizeDownInt32ToUint8Scale
532 - CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFloat
Sheri Zhangac6499a2021-02-10 15:32:38 +0000533 - Removed Neon kernels / functions:
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100534 - NEGEMMLowpQuantizeDownInt32ToUint8Scale
535 - NEGEMMMatrixAccumulateBiasesKernel
SiCong Lid004a7a2020-05-28 15:26:41 +0100536 - Deprecated functions / interfaces:
Michalis Spyrou27e67f02021-02-16 11:34:39 +0000537 - Non-descriptor based interfaces for NEThreshold, @ref CLThreshold
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +0000538 - Non-descriptor based interfaces for @ref NEScale, @ref CLScale and GCScale
539 - In @ref NESoftmaxLayer, @ref NELogSoftmaxLayer, @ref CLSoftmaxLayer, @ref CLLogSoftmaxLayer and GCSoftmaxLayer :
540 The default "axis" value for @ref CLSoftmaxLayer, @ref CLLogSoftmaxLayer and GCSoftmaxLayer is changed from 1 to 0.
morgolock9c7fed82020-08-05 12:30:56 +0100541 Only axis 0 is supported.
542 The default "axis" value for @ref NESoftmaxLayer, @ref NELogSoftmaxLayer is changed from 1 to 0.
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100543 Only axis 0 is supported.
Sang-Hoon Parka0205b92020-07-07 09:36:09 +0100544 - The support for quantized data types has been removed from @ref CLLogSoftmaxLayer due to implementation complexity.
Gian Marco Iodice547b2e72020-08-12 10:25:29 +0100545 - Removed padding requirement for the input (e.g. LHS of GEMM) and output in @ref CLGEMMMatrixMultiplyNativeKernel, @ref CLGEMMMatrixMultiplyReshapedKernel, @ref CLGEMMMatrixMultiplyReshapedOnlyRHSKernel and @ref CLIm2ColKernel (NHWC only)
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100546 - This change allows to use @ref CLGEMMConvolutionLayer without extra padding for the input and output.
547 - Only the weights/bias of @ref CLGEMMConvolutionLayer could require padding for the computation.
548 - Only on Arm Mali Midgard GPUs, @ref CLGEMMConvolutionLayer could require padding since @ref CLGEMMMatrixMultiplyKernel is called and currently requires padding.
Gian Marco Iodice547b2e72020-08-12 10:25:29 +0100549 - Added support for exporting the OpenCL buffer object to the OpenCL image object in @ref CLGEMMMatrixMultiplyReshapedKernel and @ref CLGEMMMatrixMultiplyReshapedOnlyRHSKernel.
Sang-Hoon Parkadfaefb2020-08-18 09:13:05 +0100550 - This support allows to export the OpenCL buffer used for the reshaped RHS matrix to the OpenCL image object.
551 - The padding requirement for the OpenCL image object is considered into the @ref CLGEMMReshapeRHSMatrixKernel.
552 - The reshaped RHS matrix stores the weights when GEMM is used to accelerate @ref CLGEMMConvolutionLayer.
Georgios Pinitas25ef7212020-06-02 23:00:41 +0100553
Georgios Pinitasfd7780d2020-03-17 11:41:00 +0000554v20.05 Public major release
Georgios Pinitasc7b183a2020-03-06 18:12:09 +0000555 - Various bug fixes.
556 - Various optimisations.
Michele Di Giorgio36a551f2020-04-23 11:55:29 +0100557 - Updated recommended NDK version to r18b.
558 - Updated recommended gcc version to Linaro 6.3.1.
Georgios Pinitasc7b183a2020-03-06 18:12:09 +0000559 - Added Bfloat16 type support
560 - Added Bfloat16 support in:
561 - @ref NEWeightsReshapeKernel
562 - @ref NEConvolutionLayerReshapeWeights
563 - @ref NEIm2ColKernel
Georgios Pinitasf7c5a412020-12-03 14:38:33 +0000564 - NEIm2Col
Georgios Pinitasc7b183a2020-03-06 18:12:09 +0000565 - @ref NEDepthConvertLayerKernel
566 - @ref NEDepthConvertLayer
567 - @ref NEGEMMConvolutionLayer
Georgios Pinitasec2256b2020-12-03 18:51:58 +0000568 - NEGEMMAssemblyDispatch
Sheri Zhang0f2522b2020-03-25 16:38:19 +0000569 - Added new data type QASYMM8_SIGNED support for:
570 - @ref CLDirectConvolutionLayer
571 - @ref CLDeconvolutionLayer
572 - @ref CLDirectDeconvolutionLayer
573 - @ref CLGEMMDeconvolutionLayer
574 - @ref CLGEMMLowpMatrixMultiplyReshapedKernel
575 - @ref CLGEMMLowpQuantizeDownInt32ScaleKernel
576 - @ref CLGEMMLowpQuantizeDownInt32ScaleByFloatKernel
577 - @ref CLReductionOperation
578 - @ref CLReduceMean
Sheri Zhang359c48e2020-04-30 22:53:39 +0100579 - @ref NEScale
580 - @ref NEScaleKernel
Georgios Pinitasc53266e2020-12-09 03:11:53 +0000581 - NEUpsampleLayer
Sheri Zhang0f2522b2020-03-25 16:38:19 +0000582 - @ref NECast
583 - @ref NEReductionOperation
584 - @ref NEReduceMean
585 - @ref NEArgMinMaxLayer
586 - @ref NEDeconvolutionLayer
587 - @ref NEGEMMLowpQuantizeDownInt32ScaleKernel
588 - @ref CPPBoxWithNonMaximaSuppressionLimit
589 - @ref CPPDetectionPostProcessLayer
590 - @ref CPPPermuteKernel
591 - @ref CPPPermute
592 - @ref CPPTopKVKernel
593 - @ref CPPTopKV
Sheri Zhang359c48e2020-04-30 22:53:39 +0100594 - @ref CPPUpsample
595 - @ref CPPUpsampleKernel
Sheri Zhang31b49ca2020-04-24 11:15:10 +0100596 - New OpenCL kernels / functions:
597 - @ref CLQLSTMLayer
598 - @ref CLQLSTMLayerNormalizationKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +0000599 - New Neon kernels / functions:
Sheri Zhang31b49ca2020-04-24 11:15:10 +0100600 - @ref NEQLSTMLayer
601 - @ref NEQLSTMLayerNormalizationKernel
602 - Added HARD_SWISH support in:
Georgios Pinitasf47f7182021-01-15 09:29:50 +0000603 - CLActivationLayerKernel
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000604 - NEActivationLayerKernel
Sheri Zhang0f2522b2020-03-25 16:38:19 +0000605 - Deprecated OpenCL kernels / functions:
606 - CLGEMMLowpQuantizeDownInt32ToUint8Scale
607 - CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFloat
Sheri Zhangac6499a2021-02-10 15:32:38 +0000608 - Deprecated Neon kernels / functions:
Sheri Zhang0f2522b2020-03-25 16:38:19 +0000609 - NEGEMMLowpQuantizeDownInt32ToUint8Scale
610 - Removed CPP kernels / functions:
611 - CPPFlipWeightsKernel
Manuel Bottini387259a2020-05-21 17:14:36 +0100612 - Removed PoolingLayerInfo constructors without Data Layout.
613 - Removed CLDepthwiseConvolutionLayer3x3
614 - Removed NEDepthwiseConvolutionLayerOptimized
Sheri Zhangac6499a2021-02-10 15:32:38 +0000615 - Added support for Winograd 3x3,4x4 on Neon FP16:
Manuel Bottini075253a2020-05-22 12:57:18 +0100616 - @ref NEWinogradConvolutionLayer
617 - @ref NEWinogradLayerTransformInputKernel
618 - @ref NEWinogradLayerTransformOutputKernel
619 - @ref NEWinogradLayerTransformWeightsKernel
620 - Added CLCompileContext
Sheri Zhangac6499a2021-02-10 15:32:38 +0000621 - Added Neon GEMM kernel with 2D window support
Georgios Pinitasc7b183a2020-03-06 18:12:09 +0000622
Michele Di Giorgio740872e2020-03-04 15:29:49 +0000623v20.02.1 Maintenance release
624 - Added Android-NN build script.
625
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000626v20.02 Public major release
627 - Various bug fixes.
628 - Various optimisations.
629 - Added new data type QASYMM8_SIGNED support for:
630 - @ref CLDepthwiseConvolutionLayer
Manuel Bottini387259a2020-05-21 17:14:36 +0100631 - CLDepthwiseConvolutionLayer3x3
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000632 - @ref CLGEMMConvolutionLayer
633 - @ref CLGEMMLowpMatrixMultiplyCore
634 - @ref CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel
635 - @ref CLGEMMLowpMatrixMultiplyNativeKernel
636 - @ref NEActivationLayer
Sang-Hoon Park63001ac2021-01-18 14:20:27 +0000637 - NEComparisonOperationKernel
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000638 - @ref NEConvolutionLayer
639 - @ref NEDepthwiseConvolutionLayer
Georgios Pinitas7d0adc62020-09-04 15:25:24 +0100640 - NEDepthwiseConvolutionLayer3x3Kernel
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000641 - @ref NEDirectConvolutionLayerOutputStageKernel
642 - @ref NEElementwiseComparison
643 - @ref NEElementwiseMax
644 - @ref NEElementwiseMin
645 - @ref NEElementwiseSquaredDiff
646 - @ref NEFullyConnectedLayer
Michele Di Giorgiof22f6722020-07-03 16:29:24 +0100647 - NEGEMMMatrixVectorMultiplyKernel
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000648 - @ref NEPixelWiseMultiplication
649 - @ref NEPoolingLayer
650 - @ref NEPReluLayer
651 - Added support for QSYMM8_PER_CHANNEL in:
Georgios Pinitas7d0adc62020-09-04 15:25:24 +0100652 - NEDepthwiseConvolutionLayer3x3Kernel
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000653 - Added support for split sizes in:
654 - @ref CLSplit
655 - @ref NESplit
656 - New OpenCL kernels / functions:
657 - @ref CLFill
Michele Di Giorgioba14c922020-10-12 13:27:57 +0100658 - CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel / @ref CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPoint
Sheri Zhangac6499a2021-02-10 15:32:38 +0000659 - New Neon kernels / functions:
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000660 - @ref NEFill
661 - @ref NEGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel / @ref NEGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPoint
Sheri Zhangac6499a2021-02-10 15:32:38 +0000662 - Deprecated Neon functions / interfaces:
Manuel Bottini387259a2020-05-21 17:14:36 +0100663 - CLDepthwiseConvolutionLayer3x3
664 - NEDepthwiseConvolutionLayerOptimized
665 - PoolingLayerInfo constructors without Data Layout.
Sheri Zhangac6499a2021-02-10 15:32:38 +0000666 - Added support for quantization with multiplier greater than 1 on Neon and CL.
Giuseppe Rossinif04ddbc2020-02-17 17:22:49 +0000667 - Added support for quantized inputs of type QASYMM8_SIGNED and QASYMM8 to @ref CLQuantizationLayer.
668 - Added the ability to build bootcode for bare metal.
669 - Added support for generating synthetic QASYMM8 graphs.
670 - Added support for F16 datatype in VGG16.
671 - Removed pre-built binaries for GLES.
672
Michele Di Giorgiod374ff22020-01-21 10:03:20 +0000673v19.11.1 Public maintenance release
674 - Fix offset calculation in NEReductionOperationKernel.
675 - Fix data layout in NEScaleKernel for nhwc.
676 - Retain configuration step data layout to avoid side-effects.
677 - Perform sqrt in double domain for L2 pooling.
678 - Fix output shape calculation for Reduce Mean
679 - Restrict cases where optimized NEPadLayer runs.
680
Michele Di Giorgioa046e162019-10-08 09:36:26 +0100681v19.11 Public major release
SiCong Lica1f98c2019-11-28 11:06:11 +0000682 - Various bug fixes.
683 - Various optimisations.
SiCong Li1f7f9882019-11-28 14:59:35 +0000684 - Updated recommended NDK version to r17c.
SiCong Lica1f98c2019-11-28 11:06:11 +0000685 - Deprecated OpenCL kernels / functions:
Michele Di Giorgioa046e162019-10-08 09:36:26 +0100686 - CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel
687 - CLDepthwiseIm2ColKernel
SiCong Lica1f98c2019-11-28 11:06:11 +0000688 - CLDepthwiseSeparableConvolutionLayer
Michele Di Giorgioa046e162019-10-08 09:36:26 +0100689 - CLDepthwiseVectorToTensorKernel
690 - CLDirectConvolutionLayerOutputStageKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +0000691 - Deprecated Neon kernels / functions:
Giorgio Arenad93e2632019-10-15 11:09:33 +0100692 - NEDepthwiseWeightsReshapeKernel
693 - NEDepthwiseIm2ColKernel
SiCong Lica1f98c2019-11-28 11:06:11 +0000694 - NEDepthwiseSeparableConvolutionLayer
Giorgio Arenad93e2632019-10-15 11:09:33 +0100695 - NEDepthwiseVectorToTensorKernel
Manuel Bottini05069f02019-09-26 17:18:26 +0100696 - NEDepthwiseConvolutionLayer3x3
SiCong Lica1f98c2019-11-28 11:06:11 +0000697 - New OpenCL kernels / functions:
698 - @ref CLInstanceNormalizationLayerKernel / @ref CLInstanceNormalizationLayer
699 - @ref CLDepthwiseConvolutionLayerNativeKernel to replace the old generic depthwise convolution (see Deprecated
700 OpenCL kernels / functions)
701 - @ref CLLogSoftmaxLayer
Sheri Zhangac6499a2021-02-10 15:32:38 +0000702 - New Neon kernels / functions:
SiCong Lica1f98c2019-11-28 11:06:11 +0000703 - @ref NEBoundingBoxTransformKernel / @ref NEBoundingBoxTransform
Georgios Pinitas8c3c0e72020-12-03 20:11:53 +0000704 - @ref NEComputeAllAnchorsKernel / NEComputeAllAnchors
SiCong Lica1f98c2019-11-28 11:06:11 +0000705 - @ref NEDetectionPostProcessLayer
706 - @ref NEGenerateProposalsLayer
707 - @ref NEInstanceNormalizationLayerKernel / @ref NEInstanceNormalizationLayer
708 - @ref NELogSoftmaxLayer
709 - @ref NEROIAlignLayerKernel / @ref NEROIAlignLayer
710 - Added QASYMM8 support for:
711 - @ref CLGenerateProposalsLayer
712 - @ref CLROIAlignLayer
713 - @ref CPPBoxWithNonMaximaSuppressionLimit
714 - Added QASYMM16 support for:
715 - @ref CLBoundingBoxTransform
716 - Added FP16 support for:
717 - @ref CLGEMMMatrixMultiplyReshapedKernel
718 - Added new data type QASYMM8_PER_CHANNEL support for:
719 - @ref CLDequantizationLayer
720 - @ref NEDequantizationLayer
721 - Added new data type QSYMM8_PER_CHANNEL support for:
722 - @ref CLConvolutionLayer
723 - @ref NEConvolutionLayer
724 - @ref CLDepthwiseConvolutionLayer
725 - @ref NEDepthwiseConvolutionLayer
726 - Added FP16 mixed-precision support for:
727 - @ref CLGEMMMatrixMultiplyReshapedKernel
Michele Di Giorgioe1314662021-02-01 17:09:32 +0000728 - CLPoolingLayerKernel
SiCong Lica1f98c2019-11-28 11:06:11 +0000729 - Added FP32 and FP16 ELU activation for:
730 - @ref CLActivationLayer
731 - @ref NEActivationLayer
732 - Added asymmetric padding support for:
733 - @ref CLDirectDeconvolutionLayer
734 - @ref CLGEMMDeconvolutionLayer
735 - @ref NEDeconvolutionLayer
736 - Added SYMMETRIC and REFLECT modes for @ref CLPadLayerKernel / @ref CLPadLayer.
Georgios Pinitas0f7ef8a2021-01-10 04:23:52 +0000737 - Replaced the calls to NECopyKernel and NEMemsetKernel with @ref NEPadLayer in @ref NEGenerateProposalsLayer.
738 - Replaced the calls to CLCopyKernel and CLMemsetKernel with @ref CLPadLayer in @ref CLGenerateProposalsLayer.
SiCong Lica1f98c2019-11-28 11:06:11 +0000739 - Improved performance for CL Inception V3 - FP16.
740 - Improved accuracy for CL Inception V3 - FP16 by enabling FP32 accumulator (mixed-precision).
Sheri Zhangac6499a2021-02-10 15:32:38 +0000741 - Improved Neon performance by enabling fusing batch normalization with convolution and depth-wise convolution layer.
742 - Improved Neon performance for MobileNet-SSD by improving the output detection performance.
SiCong Lica1f98c2019-11-28 11:06:11 +0000743 - Optimized @ref CLPadLayer.
744 - Optimized CL generic depthwise convolution layer by introducing @ref CLDepthwiseConvolutionLayerNativeKernel.
745 - Reduced memory consumption by implementing weights sharing.
Michele Di Giorgioa046e162019-10-08 09:36:26 +0100746
Michele Di Giorgiod374ff22020-01-21 10:03:20 +0000747v19.08.1 Public maintenance release
748 - Fix offset calculation in NEReductionOperationKernel.
749 - Fix data layout in NEScaleKernel for nhwc.
750 - Retain configuration step data layout to avoid side-effects.
751 - Perform sqrt in double domain for L2 pooling.
752 - Fix output shape calculation for Reduce Mean
753 - Fix broadcast CLPixelwiseMultiplication with 5D tensors
754
Georgios Pinitas3d13af82019-06-04 13:04:16 +0100755v19.08 Public major release
756 - Various bug fixes.
757 - Various optimisations.
Sheri Zhangac6499a2021-02-10 15:32:38 +0000758 - Deprecated Neon functions
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100759 - NEDepthConcatenateLayer
760 - NEWidthConcatenateLayer
761 - Deprecated OpenCL kernels / functions
762 - CLDepthConcatenateLayer
763 - CLGEMMInterleave4x4Kernel / CLGEMMInterleave4x4
764 - CLGEMMTranspose1xWKernel / CLGEMMTranspose1xW
765 - CLWidthConcatenateLayer
Sheri Zhangac6499a2021-02-10 15:32:38 +0000766 - New Neon kernels / functions:
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100767 - @ref NEAbsLayer
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100768 - @ref NECast
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100769 - @ref NEElementwisePower
770 - @ref NELogLayer
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100771 - @ref NELSTMLayerQuantized
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100772 - @ref NENegLayer
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100773 - @ref NEPReluLayer
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100774 - @ref NESinLayer
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000775 - NEBatchConcatenateLayerKernel
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100776 - @ref NEDepthToSpaceLayerKernel / @ref NEDepthToSpaceLayer
777 - @ref NEDepthwiseConvolutionLayerNativeKernel
778 - @ref NEGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel
779 - @ref NEMeanStdDevNormalizationKernel / @ref NEMeanStdDevNormalizationLayer
780 - @ref NESpaceToDepthLayerKernel / @ref NESpaceToDepthLayer
781 - New OpenCL kernels / functions:
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100782 - @ref CLAbsLayer
783 - @ref CLElementwisePower
784 - @ref CLLogLayer
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100785 - @ref CLLSTMLayerQuantized
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100786 - @ref CLNegLayer
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100787 - @ref CLPReluLayer
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100788 - @ref CLSinLayer
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +0000789 - CLBatchConcatenateLayerKernel
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100790 - @ref CLDepthToSpaceLayerKernel / @ref CLDepthToSpaceLayer
791 - @ref CLGEMMLowpMatrixMultiplyNativeKernel
Michele Di Giorgioba14c922020-10-12 13:27:57 +0100792 - CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100793 - @ref CLGEMMMatrixMultiplyNativeKernel
794 - @ref CLMeanStdDevNormalizationKernel / @ref CLMeanStdDevNormalizationLayer
795 - @ref CLSpaceToDepthLayerKernel / @ref CLSpaceToDepthLayer
796 - New examples:
797 - neon_opticalflow
798 - cl_cache
799 - neon_permute
Gian Marco Iodicec5f48ad2019-09-02 09:52:12 +0100800 - Added support for FP16 in @ref NEDeconvolutionLayer
801 - Added support for FP16 in @ref CLDeconvolutionLayer
802 - Added support for REDUCE_MIN and REDUCE_MAX in @ref ReductionOperation
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100803 - Enable the fusion of batch normalization with convolution and depthwise convolution layer for FP32 in the graph API (OpenCL only)
804 - Added support for fusing activation function and broadcast addition with the matrix multiplication for FP32 (OpenCL only)
Sheri Zhangac6499a2021-02-10 15:32:38 +0000805 - Re-factored the depthwise convolution layer kernel on Neon for generic cases
806 - Added an optimized depthwise convolution layer kernel for 5x5 filters (Neon only)
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100807 - Added support to enable OpenCL kernel cache. Added example showing how to load the prebuilt OpenCL kernels from a binary cache file
808 - Altered @ref QuantizationInfo interface to support per-channel quantization.
Manuel Bottini387259a2020-05-21 17:14:36 +0100809 - The CLDepthwiseConvolutionLayer3x3 will be included by @ref CLDepthwiseConvolutionLayer to accommodate for future optimizations.
810 - The NEDepthwiseConvolutionLayerOptimized will be included by @ref NEDepthwiseConvolutionLayer to accommodate for future optimizations.
Gian Marco Iodicecc2f54b2019-08-22 10:10:52 +0100811 - Removed inner_border_right and inner_border_top parameters from @ref CLDeconvolutionLayer interface
812 - Removed inner_border_right and inner_border_top parameters from @ref NEDeconvolutionLayer interface
Sheri Zhangac6499a2021-02-10 15:32:38 +0000813 - Optimized the Neon assembly kernel for GEMMLowp. The new implementation fuses the output stage and quantization with the matrix multiplication kernel
Georgios Pinitas3d13af82019-06-04 13:04:16 +0100814
Michalis Spyroua9c44722019-04-05 17:18:36 +0100815v19.05 Public major release
Michalis Spyrouc6608ac2019-05-16 17:40:23 +0100816 - Various bug fixes.
817 - Various optimisations.
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100818 - New Neon kernels / functions:
819 - @ref NEBatchToSpaceLayerKernel / @ref NEBatchToSpaceLayer
Michalis Spyrouca82e622019-05-10 16:43:20 +0100820 - @ref NEComplexPixelWiseMultiplicationKernel / @ref NEComplexPixelWiseMultiplication
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100821 - @ref NECropKernel / @ref NECropResize
Michalis Spyrouca82e622019-05-10 16:43:20 +0100822 - @ref NEDepthwiseConvolutionAssemblyDispatch
823 - @ref NEFFTDigitReverseKernel
824 - @ref NEFFTRadixStageKernel
825 - @ref NEFFTScaleKernel
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100826 - @ref NEGEMMLowpOffsetContributionOutputStageKernel
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000827 - NEHeightConcatenateLayerKernel
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100828 - @ref NESpaceToBatchLayerKernel / @ref NESpaceToBatchLayer
Michalis Spyroud7dd15c2019-05-30 14:53:58 +0100829 - @ref NEFFT1D
830 - @ref NEFFT2D
831 - @ref NEFFTConvolutionLayer
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100832 - New OpenCL kernels / functions:
Michalis Spyrouca82e622019-05-10 16:43:20 +0100833 - @ref CLComplexPixelWiseMultiplicationKernel / @ref CLComplexPixelWiseMultiplication
Sheri Zhang7e20e292021-02-02 11:49:34 +0000834 - CLCropKernel / @ref CLCropResize
Michalis Spyroud7dd15c2019-05-30 14:53:58 +0100835 - @ref CLDeconvolutionReshapeOutputKernel
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100836 - @ref CLFFTDigitReverseKernel
837 - @ref CLFFTRadixStageKernel
838 - @ref CLFFTScaleKernel
839 - @ref CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel
840 - @ref CLGEMMMatrixMultiplyReshapedOnlyRHSKernel
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +0000841 - CLHeightConcatenateLayerKernel
Georgios Pinitasf790fdb2019-04-24 12:41:25 +0100842 - @ref CLDirectDeconvolutionLayer
843 - @ref CLFFT1D
844 - @ref CLFFT2D
845 - @ref CLFFTConvolutionLayer
Michalis Spyrouca82e622019-05-10 16:43:20 +0100846 - @ref CLGEMMDeconvolutionLayer
847 - New OpenGLES kernels / functions:
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +0000848 - GCConcatenateLayer
Michalis Spyroua9c44722019-04-05 17:18:36 +0100849 - Deprecated functions/interfaces
Georgios Pinitas09f24972019-05-17 18:14:40 +0100850 - GCDepthConcatenateLayer
851 - NEWidthConcatenateLayer
852 - NEDepthConcatenateLayer
853 - CLWidthConcatenateLayer
854 - CLDepthConcatenateLayer
Gian Marco Iodice5fc07aa2019-05-15 17:08:02 +0100855 - CLGEMMInterleave4x4
856 - CLGEMMTranspose1xW
Michalis Spyrouc6608ac2019-05-16 17:40:23 +0100857 - Support different quantization info in CLConcatLayer.
858 - Add checks on different input/output quantization info were not supported.
859 - Tensors have different quantization information.
860 - Add FP16 support checks.
861 - Fix output quantization CLDeptwiseConv3x3 when activation is fused.
862 - New graph examples:
863 - graph_convolution
864 - graph_fully_connected
865 - graph_depthwise_convolution
866 - Deepspeech v0.4.1
867 - Add support for QASYMM8 in NEArithmeticSubtractionKernel.
868 - Add support for QASYMM8 in NEPixelWiseMultiplicationKernel.
869 - Add support for QASYMM8 NEDeconvolution.
Sheri Zhangac6499a2021-02-10 15:32:38 +0000870 - Add support for DequantizationLayer for Neon/CL.
Michalis Spyrouc6608ac2019-05-16 17:40:23 +0100871 - Add support for dilation in CLDepthwiseConvolution.
872 - Fuse offset contribution with the output stage when we use NEGEMMLowpMatrixMultiplyCore.
873 - Optimize CLDeconvolution.
874 - Add StackLayer to the graph API.
875 - Add support for "reflect" padding mode in NEPad.
876 - Winograd 7x7 NHWC on OpenCL.
877 - Rework CL ML layers to run exclusively on CL.
878 - Support different quantization info in PoolingLayer.
879 - Implement and test import memory interfaces.
880 - Added new tests and removed old ones.
881 - Various clang-tidy fixes.
Michalis Spyroua9c44722019-04-05 17:18:36 +0100882
giuros01a69a88b2019-01-31 16:29:19 +0000883v19.02 Public major release
Isabella Gottardi62538972019-02-12 19:52:44 +0000884 - Various bug fixes.
885 - Various optimisations.
886 - New Neon kernels / functions:
887 - @ref NETileKernel / @ref NETile
888 - @ref NEFuseBatchNormalizationKernel / @ref NEFuseBatchNormalization
Sang-Hoon Park63001ac2021-01-18 14:20:27 +0000889 - NEElementwiseOperationKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000890 - @ref NEElementwiseMax
891 - @ref NEElementwiseMin
892 - @ref NEElementwiseSquaredDiff
893 - @ref NESelectKernel / @ref NESelect
894 - @ref NESplit
895 - @ref NESlice
896 - @ref NEUnstack
897 - @ref NEStridedSliceKernel / @ref NEStridedSlice
Sang-Hoon Park7249f152021-01-22 11:55:03 +0000898 - NEElementwiseUnaryKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000899 - @ref NERsqrtLayer
900 - @ref NEExpLayer
901 - @ref NEReverseKernel / @ref NEReverse
902 - @ref NEArgMinMaxLayer
903 - @ref NEStackLayerKernel / @ref NEStackLayer
904 - @ref NERangeKernel / @ref NERange
905 - @ref NEPadLayer
Georgios Pinitas0f7ef8a2021-01-10 04:23:52 +0000906 - NEMemsetKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000907 - @ref NEGatherKernel / @ref NEGather
908 - @ref NEElementwiseComparison
909 - @ref NEElementwiseComparisonStatic
Sang-Hoon Park63001ac2021-01-18 14:20:27 +0000910 - NEComparisonOperationKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000911 - @ref NEElementwiseDivision
912 - New OpenCL kernels / functions:
913 - @ref CLSelectKernel / @ref CLSelect
914 - @ref CLTileKernel / @ref CLTile
915 - @ref CLComparisonKernel / @ref CLComparison
916 - @ref CLArgMinMaxLayer
917 - @ref CLElementwiseMax
918 - @ref CLElementwiseMin
919 - @ref CLElementwiseSquaredDiff
920 - @ref CLStackLayerKernel / @ref CLStackLayer
921 - @ref CLReverse / @ref CLReverseKernel
922 - @ref CLRsqrtLayer
923 - @ref CLExpLayer
Michele Di Giorgioc9c89052021-01-26 10:20:17 +0000924 - CLElementWiseUnaryLayerKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000925 - @ref CLGEMMReshapeLHSMatrixKernel
926 - @ref CLGEMMReshapeRHSMatrixKernel
927 - @ref CLGEMMMatrixMultiplyReshapedKernel
928 - @ref CLRangeKernel / @ref CLRange
929 - @ref CLUnstack
930 - @ref CLGatherKernel / @ref CLGather
931 - @ref CLGEMMLowpMatrixMultiplyReshapedKernel
932 - New CPP kernels / functions:
933 - @ref CPPDetectionOutputLayer
934 - @ref CPPTopKV / @ref CPPTopKVKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000935 - Added new examples:
936 - graph_ssd_mobilenet.cpp
937 - graph_mobilenet_v2.cpp
938 - graph_resnet12.cpp
939 - graph_srcnn955.cpp
940 - graph_vgg_vdsr.cpp
941 - graph_inception_resnet_v1.cpp
942 - Add 4D tensors support to
943 - @ref NESoftmaxLayer
944 - Fused activation in @ref CLWinogradConvolutionLayer
945 - Extented @ref NEPermute to support more cases
Sheri Zhangac6499a2021-02-10 15:32:38 +0000946 - Added Neon/SVE GEMM Hybrid kernels
Isabella Gottardi62538972019-02-12 19:52:44 +0000947 - Added u8 and s8 hybrid assembly kernels
948 - Introduced GEMM strategy name in NEGEMMAssemblyWrapper
949 - Improved @ref CLTuner
950 - Fused the bias addition within @ref CLGEMM
951 - Added support for QASYMM8 LOGISTIC activation in @ref NEActivationLayer
952 - Added NHWC data layout support to:
953 - @ref NEScale for F16
954 - @ref CLNormalizationLayer IN_MAP_2D for FP32/FP16
955 - @ref NEL2NormalizeLayer for FP32/FP16
956 - @ref NENormalizationLayer IN_MAP_2D for FP32/FP16
957 - @ref CLROIAlignLayer
Manuel Bottini5209be52019-02-13 16:34:56 +0000958 - @ref CLGenerateProposalsLayer
Isabella Gottardi62538972019-02-12 19:52:44 +0000959 - Added QASYMM8 support to the following kernels:
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +0000960 - NEArithmeticAdditionKernel
Isabella Gottardi62538972019-02-12 19:52:44 +0000961 - @ref NEScale
962 - Added new tests and improved validation and benchmarking suites.
giuros01a69a88b2019-01-31 16:29:19 +0000963 - Deprecated functions/interfaces
964 - Usage of inner_border_right and inner_border_top has been deprecated in @ref CLDeconvolutionLayer and @ref NEDeconvolutionLayer
965
Isabella Gottardi8773d7c2018-11-20 09:56:46 +0000966v18.11 Public major release
967 - Various bug fixes.
968 - Various optimisations.
969 - New Neon kernels / functions:
970 - @ref NEChannelShuffleLayer / @ref NEChannelShuffleLayerKernel
971 - @ref NEReduceMean
972 - @ref NEReorgLayer / @ref NEReorgLayerKernel
973 - @ref NEPriorBoxLayer / @ref NEPriorBoxLayerKernel
Georgios Pinitasc53266e2020-12-09 03:11:53 +0000974 - NEUpsampleLayer / NEUpsampleLayerKernel
Georgios Pinitas0b1c2db2020-12-04 15:51:34 +0000975 - NEYOLOLayer / NEYOLOLayerKernel
Isabella Gottardi8773d7c2018-11-20 09:56:46 +0000976 - New OpenCL kernels / functions:
977 - @ref CLBatchToSpaceLayer / @ref CLBatchToSpaceLayerKernel
978 - @ref CLBoundingBoxTransform / @ref CLBoundingBoxTransformKernel
Manuel Bottini5209be52019-02-13 16:34:56 +0000979 - @ref CLComputeAllAnchorsKernel
980 - @ref CLGenerateProposalsLayer
Isabella Gottardi8773d7c2018-11-20 09:56:46 +0000981 - @ref CLNormalizePlanarYUVLayer / @ref CLNormalizePlanarYUVLayerKernel
982 - @ref CLReorgLayer / @ref CLReorgLayerKernel
983 - @ref CLSpaceToBatchLayer / @ref CLSpaceToBatchLayerKernel
984 - @ref CLPadLayer
985 - @ref CLReduceMean
986 - @ref CLPriorBoxLayer / @ref CLPriorBoxLayerKernel
987 - @ref CLROIAlignLayer / @ref CLROIAlignLayerKernel
988 - @ref CLSlice
989 - @ref CLSplit
990 - @ref CLStridedSlice / @ref CLStridedSliceKernel
Georgios Pinitasc53266e2020-12-09 03:11:53 +0000991 - CLUpsampleLayer / CLUpsampleLayerKernel
Georgios Pinitas0b1c2db2020-12-04 15:51:34 +0000992 - CLYOLOLayer / CLYOLOLayerKernel
Isabella Gottardi8773d7c2018-11-20 09:56:46 +0000993 - New CPP kernels / functions:
994 - @ref CPPBoxWithNonMaximaSuppressionLimit / @ref CPPBoxWithNonMaximaSuppressionLimitKernel
995 - Added the validate method in:
996 - @ref NEDepthConvertLayer
997 - @ref NEFloor / @ref CLFloor
998 - @ref NEGEMMMatrixAdditionKernel
999 - @ref NEReshapeLayer / @ref CLReshapeLayer
1000 - @ref CLScale
1001 - Added new examples:
1002 - graph_shufflenet.cpp
1003 - graph_yolov3.cpp
1004 - Added documentation for add a new function or kernel.
1005 - Improved doxygen documentation adding a list of the existing functions.
1006 - Add 4D tensors support to
Georgios Pinitas09f24972019-05-17 18:14:40 +01001007 - CLWidthConcatenateLayer
Georgios Pinitase2696b12020-12-03 20:37:43 +00001008 - CLFlattenLayer
Isabella Gottardi8773d7c2018-11-20 09:56:46 +00001009 - @ref CLSoftmaxLayer
1010 - Add dot product support for @ref CLDepthwiseConvolutionLayer3x3NHWCKernel non-unit stride
1011 - Add SVE support
1012 - Fused batch normalization into convolution layer weights in @ref CLFuseBatchNormalization
1013 - Fuses activation in @ref CLDepthwiseConvolutionLayer3x3NCHWKernel, @ref CLDepthwiseConvolutionLayer3x3NHWCKernel and @ref NEGEMMConvolutionLayer
1014 - Added NHWC data layout support to:
1015 - @ref CLChannelShuffleLayer
1016 - @ref CLDeconvolutionLayer
1017 - @ref CLL2NormalizeLayer
1018 - Added QASYMM8 support to the following kernels:
1019 - @ref CLScaleKernel
Georgios Pinitas7d0adc62020-09-04 15:25:24 +01001020 - NEDepthwiseConvolutionLayer3x3Kernel
Isabella Gottardi8773d7c2018-11-20 09:56:46 +00001021 - @ref CLPixelWiseMultiplicationKernel
1022 - Added FP16 support to the following kernels:
1023 - @ref CLDepthwiseConvolutionLayer3x3NHWCKernel
Georgios Pinitas7d0adc62020-09-04 15:25:24 +01001024 - NEDepthwiseConvolutionLayer3x3Kernel
Isabella Gottardi8773d7c2018-11-20 09:56:46 +00001025 - @ref CLNormalizePlanarYUVLayerKernel
1026 - @ref CLWinogradConvolutionLayer (5x5 kernel)
1027 - More tests added to both validation and benchmarking suites.
1028
Anthony Barbierd51ea0a2018-08-07 17:48:03 +01001029v18.08 Public major release
1030 - Various bug fixes.
Michele Di Giorgio02baf012018-08-20 18:10:38 +01001031 - Various optimisations.
Anthony Barbierd51ea0a2018-08-07 17:48:03 +01001032 - Updated recommended NDK version to r17b.
Michele Di Giorgio02baf012018-08-20 18:10:38 +01001033 - Removed support for QS8/QS16 data types.
1034 - Added support for grouped convolution in @ref CLConvolutionLayer.
1035 - Added NHWC data layout support to:
Georgios Pinitas09f24972019-05-17 18:14:40 +01001036 - NEDepthConcatenateLayer / CLDepthConcatenateLayer
Michele Di Giorgio02baf012018-08-20 18:10:38 +01001037 - @ref NEWinogradConvolutionLayer / @ref CLWinogradConvolutionLayer
1038 - @ref CLDepthwiseConvolutionLayer
1039 - @ref CLDirectConvolutionLayer
1040 - @ref CLConvolutionLayer
1041 - @ref CLScale
1042 - @ref CLIm2ColKernel
1043 - New Neon kernels / functions:
1044 - @ref NERNNLayer
1045 - New OpenCL kernels / functions:
1046 - @ref CLArithmeticDivision
1047 - Introduced prepare() stage support in the graph API for GLES.
1048 - Added support for memory reusage when trying to allocate smaller CLTensors.
1049 - Enabled NHWC execution on graph examples.
1050 - Added JPEG accessor for validation purposes.
1051 - Added validate methods to some kernels / functions.
Anthony Barbierd51ea0a2018-08-07 17:48:03 +01001052
1053v18.05 Public major release
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001054 - Various bug fixes.
1055 - Various optimisations.
Pablo Telloeb82fd22018-02-23 13:43:50 +00001056 - Major redesign in the interface for the neon kernels implemented in assembly.
1057 - Removed arm_compute::NEGEMMLowpAArch64A53Kernel / arm_compute::NEGEMMLowpAArch64Kernel / arm_compute::NEGEMMLowpAArch64V8P4Kernel / arm_compute::NEGEMMInterleavedBlockedKernel / arm_compute::NEGEMMLowpAssemblyMatrixMultiplyCore / arm_compute::NEHGEMMAArch64FP16Kernel
1058 - Added NEGEMMAssemblyWrapper and AssemblyKernelGlue which are used to execute assembly kernels in neon functions.
1059 - Minor changes to the CPUInfo type to make it compatible with the new assembly gemm interface.
Sheri Zhangac6499a2021-02-10 15:32:38 +00001060 - Moved neon assembly kernels to the folder src/core/Neon/kernels/arm_gemm.
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001061 - Improved doxygen documentation.
1062 - Improved memory management for layer's transitions.
1063 - Added support for NHWC data layout in tensors.
1064 - Added NHWC data layout support to:
1065 - @ref NEGEMMConvolutionLayer
1066 - @ref NEDirectConvolutionLayer
1067 - @ref NEPoolingLayer / @ref CLPoolingLayer
1068 - @ref NEBatchNormalizationLayer / @ref CLBatchNormalizationLayer
1069 - @ref NEDepthwiseConvolutionLayer
1070 - @ref NEScale
Georgios Pinitasf7c5a412020-12-03 14:38:33 +00001071 - NEIm2Col
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001072 - Added support for dilated convolutions in @ref NEConvolutionLayer and @ref CLConvolutionLayer.
1073 - New OpenCL kernels / functions:
1074 - @ref CLChannelShuffleLayer / @ref CLChannelShuffleLayerKernel
1075 - @ref CLConvertFullyConnectedWeightsKernel / @ref CLConvertFullyConnectedWeights
Sheri Zhang7e20e292021-02-02 11:49:34 +00001076 - @ref CLCopy / CLCopyKernel
Anthony Barbier38e7f1f2018-05-21 13:37:47 +01001077 - @ref CLLSTMLayer
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001078 - @ref CLRNNLayer
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +00001079 - CLWidthConcatenateLayer / CLWidthConcatenateLayerKernel
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001080 - @ref CLWinogradFilterTransformKernel / @ref CLWinogradInputTransformKernel / @ref CLWinogradConvolutionLayer
1081 - @ref CLWinogradInputTransformKernel / @ref CLWinogradInputTransform
1082 - New Neon kernels / functions:
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001083 - @ref NEConvertFullyConnectedWeightsKernel / @ref NEConvertFullyConnectedWeights.
1084 - Created the validate method in @ref CLDepthwiseConvolutionLayer.
1085 - Beta and gamma are no longer mandatory arguments in @ref NEBatchNormalizationLayer and @ref CLBatchNormalizationLayer.
1086 - Added depth multiplier support in @ref NEDepthwiseConvolutionLayer and @ref CLDepthwiseConvolutionLayer.
1087 - Added broadcast multiply support in @ref NEPixelWiseMultiplication / @ref NEPixelWiseMultiplicationKernel.
1088 - Port mobilenet example to NHWC data layout.
1089 - Enabled Winograd method in @ref CLConvolutionLayer.
1090 - Renamed NEWinogradLayer to @ref NEWinogradConvolutionLayer.
Sheri Zhangac6499a2021-02-10 15:32:38 +00001091 - Updated @ref NEWinogradConvolutionLayer to use highly optimised assembly kernels in src/core/Neon/kernels/arm_gemm.
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001092 - Added memory manager support in GLES functions.
1093 - Major refactoring of the graph API.
1094 - Added GLES backend in the graph API.
1095 - Added support for the memory manager in the graph API.
1096 - Enabled Winograd Convolution method in the graph API.
1097 - Added support for grouped convolutions in the graph API.
1098 - Replaced NEDeconvolutionLayerUpsampleKernel with @ref NEScaleKernel in @ref NEDeconvolutionLayer.
1099 - Added fast maths flag in @ref CLConvolutionLayer.
1100 - Added new tests and benchmarks in validation and benchmark frameworks
Sheri Zhangac6499a2021-02-10 15:32:38 +00001101 - Merge Activation layer with Convolution Layer (Neon. CL, GLES)
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001102 - Added support to OpenCL 2.0 SVM
1103 - Added support to import memory in OpenCL tensors.
1104 - Added the prepare() method to perform any one off pre-processing before running the function.
1105 - Added new examples:
1106 - graph_inception_v4.cpp
Anthony Barbier38e7f1f2018-05-21 13:37:47 +01001107 - graph_resnext50.cpp
Pablo Tellob5cc95b2018-05-15 11:49:33 +01001108 - Added memory measurement instrument for CL.
Pablo Telloeb82fd22018-02-23 13:43:50 +00001109
Anthony Barbier577fbdf2018-03-01 15:17:54 +00001110v18.03 Public maintenance release
1111 - Various bug fixes.
Anthony Barbier3762e742018-03-02 11:49:33 +00001112 - Fixed bug in @ref NEActivationLayer
1113 - Fix in @ref CLTuner when using batches.
Anthony Barbier577fbdf2018-03-01 15:17:54 +00001114 - Updated recommended NDK version to r16b (And fixed warnings).
1115 - Fixed bug in validation code.
1116 - Added Inception v4 graph example.
Georgios Pinitas9fb11592018-04-26 20:34:58 +01001117 - Renamed NEWinogradLayer.cpp to @ref NEWinogradConvolutionLayer
Anthony Barbier577fbdf2018-03-01 15:17:54 +00001118
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001119v18.02 Public major release
Sheri Zhangac6499a2021-02-10 15:32:38 +00001120 - Various Neon / OpenCL / GLES optimisations.
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001121 - Various bug fixes.
1122 - Changed default number of threads on big LITTLE systems.
1123 - Refactored examples and added:
1124 - graph_mobilenet_qassym8
1125 - graph_resnet
1126 - graph_squeezenet_v1_1
Anthony Barbier3762e742018-03-02 11:49:33 +00001127 - Renamed @ref CLConvolutionLayer into @ref CLGEMMConvolutionLayer and created a new @ref CLConvolutionLayer to select the fastest convolution method.
1128 - Renamed @ref NEConvolutionLayer into @ref NEGEMMConvolutionLayer and created a new @ref NEConvolutionLayer to select the fastest convolution method.
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001129 - Added in place support to:
Anthony Barbier3762e742018-03-02 11:49:33 +00001130 - @ref CLActivationLayer
1131 - @ref CLBatchNormalizationLayer
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001132 - Added QASYMM8 support to:
Anthony Barbier3762e742018-03-02 11:49:33 +00001133 - @ref CLActivationLayer
1134 - @ref CLDepthwiseConvolutionLayer
1135 - @ref NEDepthwiseConvolutionLayer
1136 - @ref NESoftmaxLayer
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001137 - Added FP16 support to:
Manuel Bottini387259a2020-05-21 17:14:36 +01001138 - CLDepthwiseConvolutionLayer3x3
Anthony Barbier3762e742018-03-02 11:49:33 +00001139 - @ref CLDepthwiseConvolutionLayer
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +00001140 - Added broadcasting support to NEArithmeticAddition / @ref CLArithmeticAddition / @ref CLPixelWiseMultiplication
Anthony Barbier3762e742018-03-02 11:49:33 +00001141 - Added fused batched normalization and activation to @ref CLBatchNormalizationLayer and @ref NEBatchNormalizationLayer
1142 - Added support for non-square pooling to @ref NEPoolingLayer and @ref CLPoolingLayer
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001143 - New OpenCL kernels / functions:
Michele Di Giorgioa046e162019-10-08 09:36:26 +01001144 - CLDirectConvolutionLayerOutputStageKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +00001145 - New Neon kernels / functions
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001146 - Added name() method to all kernels.
1147 - Added support for Winograd 5x5.
Georgios Pinitas0f7ef8a2021-01-10 04:23:52 +00001148 - NEPermuteKernel / @ref NEPermute
Georgios Pinitas9fb11592018-04-26 20:34:58 +01001149 - @ref NEWinogradLayerTransformInputKernel / NEWinogradLayer
1150 - @ref NEWinogradLayerTransformOutputKernel / NEWinogradLayer
1151 - @ref NEWinogradLayerTransformWeightsKernel / NEWinogradLayer
Anthony Barbiere1553372018-07-16 18:53:52 +01001152 - Renamed NEWinogradLayerKernel into NEWinogradLayerBatchedGEMMKernel
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001153 - New GLES kernels / functions:
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001154 - GCTensorShiftKernel / GCTensorShift
Pablo Tellof6c572c2018-02-14 12:47:30 +00001155
Anthony Barbier64c95a02018-01-22 18:48:55 +00001156v18.01 Public maintenance release
1157 - Various bug fixes
1158 - Added some of the missing validate() methods
Anthony Barbier3762e742018-03-02 11:49:33 +00001159 - Added @ref CLDeconvolutionLayerUpsampleKernel / @ref CLDeconvolutionLayer @ref CLDeconvolutionLayerUpsample
Sheri Zhang7e20e292021-02-02 11:49:34 +00001160 - Added CLPermuteKernel / @ref CLPermute
Anthony Barbier64c95a02018-01-22 18:48:55 +00001161 - Added method to clean the programs cache in the CL Kernel library.
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001162 - Added GCArithmeticAdditionKernel / GCArithmeticAddition
1163 - Added GCDepthwiseConvolutionLayer3x3Kernel / GCDepthwiseConvolutionLayer3x3
1164 - Added GCNormalizePlanarYUVLayerKernel / GCNormalizePlanarYUVLayer
1165 - Added GCScaleKernel / GCScale
1166 - Added GCWeightsReshapeKernel / GCConvolutionLayer
Anthony Barbier64c95a02018-01-22 18:48:55 +00001167 - Added FP16 support to the following GLES compute kernels:
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001168 - GCCol2ImKernel
1169 - GCGEMMInterleave4x4Kernel
1170 - GCGEMMTranspose1xWKernel
1171 - GCIm2ColKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +00001172 - Refactored Neon Winograd (NEWinogradLayerKernel)
Anthony Barbier3762e742018-03-02 11:49:33 +00001173 - Added @ref NEDirectConvolutionLayerOutputStageKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +00001174 - Added QASYMM8 support to the following Neon kernels:
Georgios Pinitas7d0adc62020-09-04 15:25:24 +01001175 - NEDepthwiseConvolutionLayer3x3Kernel
Anthony Barbier3762e742018-03-02 11:49:33 +00001176 - @ref NEFillBorderKernel
Michele Di Giorgio19289042021-02-03 16:05:00 +00001177 - NEPoolingLayerKernel
Anthony Barbier64c95a02018-01-22 18:48:55 +00001178 - Added new examples:
1179 - graph_cl_mobilenet_qasymm8.cpp
1180 - graph_inception_v3.cpp
1181 - gc_dc.cpp
1182 - More tests added to both validation and benchmarking suites.
1183
Gian Marcoff850932017-12-11 12:37:17 +00001184v17.12 Public major release
1185 - Most machine learning functions on OpenCL support the new data type QASYMM8
1186 - Introduced logging interface
1187 - Introduced opencl timer
1188 - Reworked GEMMLowp interface
Sheri Zhangac6499a2021-02-10 15:32:38 +00001189 - Added new Neon assembly kernels for GEMMLowp, SGEMM and HGEMM
Gian Marcoff850932017-12-11 12:37:17 +00001190 - Added validation method for most Machine Learning kernels / functions
1191 - Added new graph examples such as googlenet, mobilenet, squeezenet, vgg16 and vgg19
1192 - Added sgemm example for OpenCL
1193 - Added absolute difference example for GLES compute
1194 - Added new tests and benchmarks in validation and benchmark frameworks
1195 - Added new kernels / functions for GLES compute
1196
1197 - New OpenGL ES kernels / functions
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001198 - GCAbsoluteDifferenceKernel / GCAbsoluteDifference
1199 - GCActivationLayerKernel / GCActivationLayer
1200 - GCBatchNormalizationLayerKernel / GCBatchNormalizationLayer
1201 - GCCol2ImKernel
1202 - GCDepthConcatenateLayerKernel / GCDepthConcatenateLayer
1203 - GCDirectConvolutionLayerKernel / GCDirectConvolutionLayer
1204 - GCDropoutLayerKernel / GCDropoutLayer
1205 - GCFillBorderKernel / GCFillBorder
1206 - GCGEMMInterleave4x4Kernel / GCGEMMInterleave4x4
1207 - GCGEMMMatrixAccumulateBiasesKernel / GCGEMMMatrixAdditionKernel / GCGEMMMatrixMultiplyKernel / GCGEMM
1208 - GCGEMMTranspose1xWKernel / GCGEMMTranspose1xW
1209 - GCIm2ColKernel
1210 - GCNormalizationLayerKernel / GCNormalizationLayer
1211 - GCPixelWiseMultiplicationKernel / GCPixelWiseMultiplication
1212 - GCPoolingLayerKernel / GCPoolingLayer
1213 - GCLogits1DMaxKernel / GCLogits1DShiftExpSumKernel / GCLogits1DNormKernel / GCSoftmaxLayer
1214 - GCTransposeKernel / GCTranspose
Gian Marcoff850932017-12-11 12:37:17 +00001215
Sheri Zhangac6499a2021-02-10 15:32:38 +00001216 - New Neon kernels / functions
Pablo Telloeb82fd22018-02-23 13:43:50 +00001217 - arm_compute::NEGEMMLowpAArch64A53Kernel / arm_compute::NEGEMMLowpAArch64Kernel / arm_compute::NEGEMMLowpAArch64V8P4Kernel / arm_compute::NEGEMMInterleavedBlockedKernel / arm_compute::NEGEMMLowpAssemblyMatrixMultiplyCore
1218 - arm_compute::NEHGEMMAArch64FP16Kernel
Georgios Pinitas7d0adc62020-09-04 15:25:24 +01001219 - NEDepthwiseConvolutionLayer3x3Kernel / NEDepthwiseIm2ColKernel / NEGEMMMatrixVectorMultiplyKernel / NEDepthwiseVectorToTensorKernel / @ref NEDepthwiseConvolutionLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001220 - @ref NEGEMMLowpOffsetContributionKernel / @ref NEGEMMLowpMatrixAReductionKernel / @ref NEGEMMLowpMatrixBReductionKernel / @ref NEGEMMLowpMatrixMultiplyCore
1221 - @ref NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel / @ref NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPoint
Georgios Pinitas9fb11592018-04-26 20:34:58 +01001222 - NEWinogradLayer / NEWinogradLayerKernel
Gian Marcoff850932017-12-11 12:37:17 +00001223
1224 - New OpenCL kernels / functions
Anthony Barbier3762e742018-03-02 11:49:33 +00001225 - @ref CLGEMMLowpOffsetContributionKernel / @ref CLGEMMLowpMatrixAReductionKernel / @ref CLGEMMLowpMatrixBReductionKernel / @ref CLGEMMLowpMatrixMultiplyCore
Michele Di Giorgioba14c922020-10-12 13:27:57 +01001226 - CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel / @ref CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPoint
Gian Marcoff850932017-12-11 12:37:17 +00001227
Sheri Zhangac6499a2021-02-10 15:32:38 +00001228 - New graph nodes for Neon and OpenCL
Georgios Pinitasd9eb2752018-04-03 13:44:29 +01001229 - graph::BranchLayer
1230 - graph::DepthConvertLayer
1231 - graph::DepthwiseConvolutionLayer
1232 - graph::DequantizationLayer
1233 - graph::FlattenLayer
1234 - graph::QuantizationLayer
1235 - graph::ReshapeLayer
Gian Marcoff850932017-12-11 12:37:17 +00001236
Anthony Barbier3c5b4ff2017-10-12 13:20:52 +01001237v17.10 Public maintenance release
1238 - Bug fixes:
1239 - Check the maximum local workgroup size supported by OpenCL devices
1240 - Minor documentation updates (Fixed instructions to build the examples)
Anthony Barbier3762e742018-03-02 11:49:33 +00001241 - Introduced a graph::GraphContext
Anthony Barbier3c5b4ff2017-10-12 13:20:52 +01001242 - Added a few new Graph nodes, support for branches and grouping.
1243 - Automatically enable cl_printf in debug builds
1244 - Fixed bare metal builds for armv7a
1245 - Added AlexNet and cartoon effect examples
1246 - Fixed library builds: libraries are no longer built as supersets of each other.(It means application using the Runtime part of the library now need to link against both libarm_compute_core and libarm_compute)
1247
Anthony Barbier6a5627a2017-09-26 14:42:02 +01001248v17.09 Public major release
1249 - Experimental Graph support: initial implementation of a simple stream API to easily chain machine learning layers.
Anthony Barbier3762e742018-03-02 11:49:33 +00001250 - Memory Manager (@ref BlobLifetimeManager, @ref BlobMemoryPool, @ref ILifetimeManager, @ref IMemoryGroup, @ref IMemoryManager, @ref IMemoryPool, @ref IPoolManager, @ref MemoryManagerOnDemand, @ref PoolManager)
Anthony Barbier6a5627a2017-09-26 14:42:02 +01001251 - New validation and benchmark frameworks (Boost and Google frameworks replaced by homemade framework).
Sheri Zhangac6499a2021-02-10 15:32:38 +00001252 - Most machine learning functions support both fixed point 8 and 16 bit (QS8, QS16) for both Neon and OpenCL.
1253 - New Neon kernels / functions:
Pablo Telloeb82fd22018-02-23 13:43:50 +00001254 - arm_compute::NEGEMMAssemblyBaseKernel arm_compute::NEGEMMAArch64Kernel
Anthony Barbier3762e742018-03-02 11:49:33 +00001255 - @ref NEDequantizationLayerKernel / @ref NEDequantizationLayer
Georgios Pinitas70eb53b2021-01-06 19:42:21 +00001256 - NEFloorKernel / @ref NEFloor
Anthony Barbier3762e742018-03-02 11:49:33 +00001257 - @ref NEL2NormalizeLayerKernel / @ref NEL2NormalizeLayer
1258 - @ref NEQuantizationLayerKernel @ref NEMinMaxLayerKernel / @ref NEQuantizationLayer
1259 - @ref NEROIPoolingLayerKernel / @ref NEROIPoolingLayer
1260 - @ref NEReductionOperationKernel / @ref NEReductionOperation
Georgios Pinitas0f7ef8a2021-01-10 04:23:52 +00001261 - NEReshapeLayerKernel / @ref NEReshapeLayer
Anthony Barbier6a5627a2017-09-26 14:42:02 +01001262
1263 - New OpenCL kernels / functions:
Manuel Bottini387259a2020-05-21 17:14:36 +01001264 - @ref CLDepthwiseConvolutionLayer3x3NCHWKernel @ref CLDepthwiseConvolutionLayer3x3NHWCKernel CLDepthwiseIm2ColKernel CLDepthwiseVectorToTensorKernel CLDepthwiseWeightsReshapeKernel / CLDepthwiseConvolutionLayer3x3 @ref CLDepthwiseConvolutionLayer CLDepthwiseSeparableConvolutionLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001265 - @ref CLDequantizationLayerKernel / @ref CLDequantizationLayer
1266 - @ref CLDirectConvolutionLayerKernel / @ref CLDirectConvolutionLayer
Georgios Pinitase2696b12020-12-03 20:37:43 +00001267 - CLFlattenLayer
Georgios Pinitasf47f7182021-01-15 09:29:50 +00001268 - CLFloorKernel / @ref CLFloor
Gian Marco Iodice5fc07aa2019-05-15 17:08:02 +01001269 - CLGEMMTranspose1xW
Michele Di Giorgioee82d342021-01-05 16:14:28 +00001270 - CLGEMMMatrixVectorMultiplyKernel
Anthony Barbier3762e742018-03-02 11:49:33 +00001271 - @ref CLL2NormalizeLayerKernel / @ref CLL2NormalizeLayer
1272 - @ref CLQuantizationLayerKernel @ref CLMinMaxLayerKernel / @ref CLQuantizationLayer
1273 - @ref CLROIPoolingLayerKernel / @ref CLROIPoolingLayer
1274 - @ref CLReductionOperationKernel / @ref CLReductionOperation
Sheri Zhang7e20e292021-02-02 11:49:34 +00001275 - CLReshapeLayerKernel / @ref CLReshapeLayer
Anthony Barbier6a5627a2017-09-26 14:42:02 +01001276
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001277v17.06 Public major release
1278 - Various bug fixes
Sheri Zhangac6499a2021-02-10 15:32:38 +00001279 - Added support for fixed point 8 bit (QS8) to the various Neon machine learning kernels.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001280 - Added unit tests and benchmarks (AlexNet, LeNet)
1281 - Added support for sub tensors.
1282 - Added infrastructure to provide GPU specific optimisation for some OpenCL kernels.
Sheri Zhangac6499a2021-02-10 15:32:38 +00001283 - Added @ref OMPScheduler (OpenMP) scheduler for Neon
1284 - Added @ref SingleThreadScheduler scheduler for Neon (For bare metal)
Anthony Barbier3762e742018-03-02 11:49:33 +00001285 - User can specify his own scheduler by implementing the @ref IScheduler interface.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001286 - New OpenCL kernels / functions:
Anthony Barbier3762e742018-03-02 11:49:33 +00001287 - @ref CLBatchNormalizationLayerKernel / @ref CLBatchNormalizationLayer
Michele Di Giorgio7d61ff02021-01-18 21:15:59 +00001288 - CLDepthConcatenateLayerKernel / CLDepthConcatenateLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001289 - @ref CLHOGOrientationBinningKernel @ref CLHOGBlockNormalizationKernel, @ref CLHOGDetectorKernel / @ref CLHOGDescriptor @ref CLHOGDetector @ref CLHOGGradient @ref CLHOGMultiDetection
Georgios Pinitas96b16b62020-12-01 17:41:34 +00001290 - CLLocallyConnectedMatrixMultiplyKernel / CLLocallyConnectedLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001291 - @ref CLWeightsReshapeKernel / @ref CLConvolutionLayerReshapeWeights
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001292 - New C++ kernels:
Anthony Barbier3762e742018-03-02 11:49:33 +00001293 - @ref CPPDetectionWindowNonMaximaSuppressionKernel
Sheri Zhangac6499a2021-02-10 15:32:38 +00001294 - New Neon kernels / functions:
Anthony Barbier3762e742018-03-02 11:49:33 +00001295 - @ref NEBatchNormalizationLayerKernel / @ref NEBatchNormalizationLayer
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +00001296 - NEDepthConcatenateLayerKernel / NEDepthConcatenateLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001297 - @ref NEDirectConvolutionLayerKernel / @ref NEDirectConvolutionLayer
Georgios Pinitas96b16b62020-12-01 17:41:34 +00001298 - NELocallyConnectedMatrixMultiplyKernel / NELocallyConnectedLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001299 - @ref NEWeightsReshapeKernel / @ref NEConvolutionLayerReshapeWeights
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001300
1301v17.05 Public bug fixes release
1302 - Various bug fixes
1303 - Remaining of the functions ported to use accurate padding.
1304 - Library does not link against OpenCL anymore (It uses dlopen / dlsym at runtime instead to determine whether or not OpenCL is available).
1305 - Added "free" method to allocator.
1306 - Minimum version of g++ required for armv7 Linux changed from 4.8 to 4.9
1307
1308v17.04 Public bug fixes release
1309
1310 The following functions have been ported to use the new accurate padding:
Anthony Barbier3762e742018-03-02 11:49:33 +00001311 - @ref CLColorConvertKernel
1312 - @ref CLEdgeNonMaxSuppressionKernel
1313 - @ref CLEdgeTraceKernel
1314 - @ref CLGaussianPyramidHorKernel
1315 - @ref CLGaussianPyramidVertKernel
1316 - @ref CLGradientKernel
Michalis Spyrou27e67f02021-02-16 11:34:39 +00001317 - NEChannelCombineKernel
Anthony Barbier3762e742018-03-02 11:49:33 +00001318 - @ref NEFillArrayKernel
Michalis Spyrou27e67f02021-02-16 11:34:39 +00001319 - NEGaussianPyramidHorKernel
1320 - NEGaussianPyramidVertKernel
Georgios Pinitas09d34512018-08-30 16:02:11 +01001321 - NEHarrisScoreFP16Kernel
Michalis Spyrou27e67f02021-02-16 11:34:39 +00001322 - NEHarrisScoreKernel
1323 - NEHOGDetectorKernel
Michalis Spyrou373b4072021-01-20 16:41:12 +00001324 - NELogits1DMaxKernel
Anthony Barbier3762e742018-03-02 11:49:33 +00001325 - NELogits1DShiftExpSumKernel
1326 - NELogits1DNormKernel
1327 - @ref NENonMaximaSuppression3x3FP16Kernel
1328 - @ref NENonMaximaSuppression3x3Kernel
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001329
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001330v17.03.1 First Major public release of the sources
1331 - Renamed the library to arm_compute
Sheri Zhangac6499a2021-02-10 15:32:38 +00001332 - New CPP target introduced for C++ kernels shared between Neon and CL functions.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001333 - New padding calculation interface introduced and ported most kernels / functions to use it.
1334 - New OpenCL kernels / functions:
Gian Marco Iodiceeb65f6d2020-04-15 11:42:15 +01001335 - CLGEMMLowpMatrixMultiplyKernel / CLGEMMLowp
Sheri Zhangac6499a2021-02-10 15:32:38 +00001336 - New Neon kernels / functions:
Anthony Barbier3762e742018-03-02 11:49:33 +00001337 - @ref NENormalizationLayerKernel / @ref NENormalizationLayer
1338 - @ref NETransposeKernel / @ref NETranspose
Michalis Spyrou373b4072021-01-20 16:41:12 +00001339 - NELogits1DMaxKernel, NELogits1DShiftExpSumKernel, NELogits1DNormKernel / @ref NESoftmaxLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001340 - @ref NEIm2ColKernel, @ref NECol2ImKernel, NEConvolutionLayerWeightsReshapeKernel / @ref NEConvolutionLayer
Michele Di Giorgiof22f6722020-07-03 16:29:24 +01001341 - NEGEMMMatrixAccumulateBiasesKernel / @ref NEFullyConnectedLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001342 - @ref NEGEMMLowpMatrixMultiplyKernel / NEGEMMLowp
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001343
1344v17.03 Sources preview
1345 - New OpenCL kernels / functions:
Anthony Barbier3762e742018-03-02 11:49:33 +00001346 - @ref CLGradientKernel, @ref CLEdgeNonMaxSuppressionKernel, @ref CLEdgeTraceKernel / @ref CLCannyEdge
Gian Marco Iodice57a89612019-08-22 14:10:27 +01001347 - GEMM refactoring + FP16 support: CLGEMMInterleave4x4Kernel, CLGEMMTranspose1xWKernel, @ref CLGEMMMatrixMultiplyKernel, CLGEMMMatrixAdditionKernel / @ref CLGEMM
Michele Di Giorgiof6f78762020-07-06 11:27:21 +01001348 - CLGEMMMatrixAccumulateBiasesKernel / @ref CLFullyConnectedLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001349 - @ref CLTransposeKernel / @ref CLTranspose
1350 - @ref CLLKTrackerInitKernel, @ref CLLKTrackerStage0Kernel, @ref CLLKTrackerStage1Kernel, @ref CLLKTrackerFinalizeKernel / @ref CLOpticalFlow
1351 - @ref CLNormalizationLayerKernel / @ref CLNormalizationLayer
1352 - @ref CLLaplacianPyramid, @ref CLLaplacianReconstruct
Sheri Zhangac6499a2021-02-10 15:32:38 +00001353 - New Neon kernels / functions:
Michele Di Giorgiobd2c8e12021-01-19 15:29:02 +00001354 - NEActivationLayerKernel / @ref NEActivationLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001355 - GEMM refactoring + FP16 support (Requires armv8.2 CPU): @ref NEGEMMInterleave4x4Kernel, @ref NEGEMMTranspose1xWKernel, @ref NEGEMMMatrixMultiplyKernel, @ref NEGEMMMatrixAdditionKernel / @ref NEGEMM
Michele Di Giorgio19289042021-02-03 16:05:00 +00001356 - NEPoolingLayerKernel / @ref NEPoolingLayer
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001357
1358v17.02.1 Sources preview
1359 - New OpenCL kernels / functions:
Michele Di Giorgiof6f78762020-07-06 11:27:21 +01001360 - CLLogits1DMaxKernel, CLLogits1DShiftExpSumKernel, @ref CLLogits1DNormKernel / @ref CLSoftmaxLayer
Michele Di Giorgioe1314662021-02-01 17:09:32 +00001361 - CLPoolingLayerKernel / @ref CLPoolingLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001362 - @ref CLIm2ColKernel, @ref CLCol2ImKernel, CLConvolutionLayerWeightsReshapeKernel / @ref CLConvolutionLayer
1363 - @ref CLRemapKernel / @ref CLRemap
1364 - @ref CLGaussianPyramidHorKernel, @ref CLGaussianPyramidVertKernel / @ref CLGaussianPyramid, @ref CLGaussianPyramidHalf, @ref CLGaussianPyramidOrb
1365 - @ref CLMinMaxKernel, @ref CLMinMaxLocationKernel / @ref CLMinMaxLocation
1366 - @ref CLNonLinearFilterKernel / @ref CLNonLinearFilter
Sheri Zhangac6499a2021-02-10 15:32:38 +00001367 - New Neon FP16 kernels (Requires armv8.2 CPU)
Michalis Spyrou27e67f02021-02-16 11:34:39 +00001368 - NEAccumulateWeightedFP16Kernel
1369 - NEBox3x3FP16Kernel
Anthony Barbier3762e742018-03-02 11:49:33 +00001370 - @ref NENonMaximaSuppression3x3FP16Kernel
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001371
1372v17.02 Sources preview
1373 - New OpenCL kernels / functions:
Georgios Pinitasf47f7182021-01-15 09:29:50 +00001374 - CLActivationLayerKernel / @ref CLActivationLayer
Anthony Barbier3762e742018-03-02 11:49:33 +00001375 - @ref CLChannelCombineKernel / @ref CLChannelCombine
1376 - @ref CLDerivativeKernel / @ref CLChannelExtract
1377 - @ref CLFastCornersKernel / @ref CLFastCorners
1378 - @ref CLMeanStdDevKernel / @ref CLMeanStdDev
Sheri Zhangac6499a2021-02-10 15:32:38 +00001379 - New Neon kernels / functions:
Michalis Spyrou27e67f02021-02-16 11:34:39 +00001380 - HOG / SVM: NEHOGOrientationBinningKernel, NEHOGBlockNormalizationKernel, NEHOGDetectorKernel, NEHOGNonMaximaSuppressionKernel / NEHOGDescriptor, NEHOGDetector, NEHOGGradient, NEHOGMultiDetection
1381 - NENonLinearFilterKernel / NENonLinearFilter
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001382 - Introduced a CLScheduler to manage the default context and command queue used by the runtime library and create synchronisation events.
1383 - Switched all the kernels / functions to use tensors instead of images.
1384 - Updated documentation to include instructions to build the library from sources.
1385
1386v16.12 Binary preview release
1387 - Original release
1388
1389@section S3_how_to_build How to build the library and the examples
1390
1391@subsection S3_1_build_options Build options
1392
1393scons 2.3 or above is required to build the library.
1394To see the build options available simply run ```scons -h```:
1395
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001396 debug: Debug (yes|no)
1397 default: False
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001398
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001399 asserts: Enable asserts (this flag is forced to 1 for debug=1) (yes|no)
1400 default: False
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001401
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001402 logging: Logging (this flag is forced to 1 for debug=1) (yes|no)
1403 default: False
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001404
Sang-Hoon Park50e98bb2021-01-14 14:54:14 +00001405 arch: Target Architecture (armv7a|arm64-v8a|arm64-v8.2-a|arm64-v8.2-a-sve|arm64-v8.2-a-sve2|x86_32|x86_64|armv8a|armv8.2-a|armv8.2-a-sve|armv8.6-a|armv8.6-a-sve|armv8.6-a-sve2|armv8r64|x86)
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001406 default: armv7a
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001407
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001408 estate: Execution State (auto|32|64)
1409 default: auto
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001410
Georgios Pinitas45514032020-12-30 00:03:09 +00001411 os: Target OS (linux|android|macos|tizen|bare_metal)
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001412 default: linux
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001413
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001414 build: Build type (native|cross_compile|embed_only)
1415 default: cross_compile
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001416
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001417 examples: Build example programs (yes|no)
1418 default: True
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001419
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001420 gemm_tuner: Build gemm_tuner programs (yes|no)
1421 default: True
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001422
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001423 Werror: Enable/disable the -Werror compilation flag (yes|no)
1424 default: True
Anthony Barbier20dbb822017-12-13 21:19:39 +00001425
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001426 standalone: Builds the tests as standalone executables, links statically with libgcc, libstdc++ and libarm_compute (yes|no)
1427 default: False
Anthony Barbier79c61782017-06-23 11:48:24 +01001428
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001429 opencl: Enable OpenCL support (yes|no)
1430 default: True
Anthony Barbier79c61782017-06-23 11:48:24 +01001431
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001432 neon: Enable Neon support (yes|no)
1433 default: False
Anthony Barbier79c61782017-06-23 11:48:24 +01001434
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001435 embed_kernels: Embed OpenCL kernels in library binary (yes|no)
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001436 default: True
Anthony Barbier79c61782017-06-23 11:48:24 +01001437
Georgios Pinitasea857272021-01-22 05:47:37 +00001438 compress_kernels: Compress embedded OpenCL kernels in library binary. Note embed_kernels should be enabled as well (yes|no)
1439 default: False
Georgios Pinitasea857272021-01-22 05:47:37 +00001440
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001441 set_soname: Set the library's soname and shlibversion (requires SCons 2.4 or above) (yes|no)
1442 default: False
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001443
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001444 tracing: Enable runtime tracing (yes|no)
1445 default: False
Anthony Barbier79c61782017-06-23 11:48:24 +01001446
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001447 openmp: Enable OpenMP backend (yes|no)
1448 default: False
Anthony Barbier6a5627a2017-09-26 14:42:02 +01001449
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001450 cppthreads: Enable C++11 threads backend (yes|no)
1451 default: True
Anthony Barbier79c61782017-06-23 11:48:24 +01001452
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001453 build_dir: Specify sub-folder for the build ( /path/to/build_dir )
1454 default: .
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001455
1456 install_dir: Specify sub-folder for the install ( /path/to/install_dir )
1457 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001458
1459 exceptions: Enable/disable C++ exception support (yes|no)
1460 default: True
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001461
1462 linker_script: Use an external linker script ( /path/to/linker_script )
1463 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001464
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001465 custom_options: Custom options that can be used to turn on/off features
1466 (all|none|comma-separated list of names)
1467 allowed names: disable_mmla_fp
1468 default: none
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001469
1470 data_type_support: Enable a list of data types to support
1471 (all|none|comma-separated list of names)
1472 allowed names: qasymm8 qasymm8_signed qsymm16 fp16 fp32
1473 default: all
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001474
1475 toolchain_prefix: Override the toolchain prefix
1476 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001477
1478 compiler_prefix: Override the compiler prefix
1479 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001480
1481 extra_cxx_flags: Extra CXX flags to be appended to the build command
1482 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001483
1484 extra_link_flags: Extra LD flags to be appended to the build command
1485 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001486
1487 compiler_cache: Command to prefix to the C and C++ compiler (e.g ccache)
1488 default:
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001489
1490 specs_file: Specs file to use
1491 default: rdimon.specs
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001492
1493 benchmark_examples: Build benchmark examples programs (yes|no)
1494 default: True
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001495
1496 validate_examples: Build validate examples programs (yes|no)
1497 default: True
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001498
1499 reference_openmp: Build reference validation with openmp (yes|no)
1500 default: True
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001501
1502 validation_tests: Build validation test programs (yes|no)
1503 default: True
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001504
1505 benchmark_tests: Build benchmark test programs (yes|no)
1506 default: True
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001507
1508 test_filter: Pattern to specify the tests' filenames to be compiled
1509 default: *.cpp
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001510
1511 pmu: Enable PMU counters (yes|no)
1512 default: False
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001513
1514 mali: Enable Mali hardware counters (yes|no)
1515 default: False
Anthony Barbier79c61782017-06-23 11:48:24 +01001516
Michele Di Giorgio72610dc2020-11-18 15:29:08 +00001517 external_tests_dir: Add examples, benchmarks and tests to the tests suite from an external path ( /path/to/external_tests_dir )
1518 default:
Michele Di Giorgio72610dc2020-11-18 15:29:08 +00001519
Anthony Barbier79c61782017-06-23 11:48:24 +01001520@b debug / @b asserts:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001521 - With debug=1 asserts are enabled, and the library is built with symbols and no optimisations enabled.
1522 - With debug=0 and asserts=1: Optimisations are enabled and symbols are removed, however all the asserts are still present (This is about 20% slower than the release build)
1523 - With debug=0 and asserts=0: All optimisations are enable and no validation is performed, if the application misuses the library it is likely to result in a crash. (Only use this mode once you are sure your application is working as expected).
1524
Anthony Barbier79c61782017-06-23 11:48:24 +01001525@b arch: The x86_32 and x86_64 targets can only be used with neon=0 and opencl=1.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001526
Anthony Barbier79c61782017-06-23 11:48:24 +01001527@b os: Choose the operating system you are targeting: Linux, Android or bare metal.
Sheri Zhangac6499a2021-02-10 15:32:38 +00001528@note bare metal can only be used for Neon (not OpenCL), only static libraries get built and Neon's multi-threading support is disabled.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001529
Anthony Barbier79c61782017-06-23 11:48:24 +01001530@b build: you can either build directly on your device (native) or cross compile from your desktop machine (cross-compile). In both cases make sure the compiler is available in your path.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001531
Sheri Zhangac6499a2021-02-10 15:32:38 +00001532@note If you want to natively compile for 32bit on a 64bit Arm device running a 64bit OS then you will have to use cross-compile too.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001533
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001534There is also an 'embed_only' option which will generate all the .embed files for the OpenCL kernels. This might be useful if using a different build system to compile the library.
Anthony Barbier2d0ce772018-02-21 15:35:36 +00001535
Georgios Pinitasea857272021-01-22 05:47:37 +00001536In addittion the option 'compress_kernels' will compress the embedded OpenCL kernel files using zlib and inject them in the library. This is useful for reducing the binary size. Note, this option is only available for Android when 'embed_kernels' is enabled.
1537
Michele Di Giorgioeca54a02021-02-16 15:37:59 +00001538@b Werror: If you are compiling using the same toolchains as the ones used in this guide then there shouldn't be any warning and therefore you should be able to keep Werror=1. If with a different compiler version the library fails to build because of warnings interpreted as errors then, if you are sure the warnings are not important, you might want to try to build with Werror=0 (But please do report the issue on Github).
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001539
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001540@b opencl / @b neon: Choose which SIMD technology you want to target. (Neon for Arm Cortex-A CPUs or OpenCL for Arm Mali GPUs)
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001541
Manuel Bottiniceaa0bf2021-02-16 15:15:19 +00001542@b embed_kernels: For OpenCL only: set embed_kernels=1 if you want the OpenCL kernels to be built in the library's binaries instead of being read from separate ".cl" / ".cs" files. If embed_kernels is set to 0 then the application can set the path to the folder containing the OpenCL kernel files by calling CLKernelLibrary::init(). By default the path is set to "./cl_kernels".
Anthony Barbier79c61782017-06-23 11:48:24 +01001543
1544@b set_soname: Do you want to build the versioned version of the library ?
1545
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001546If enabled the library will contain a SONAME and SHLIBVERSION and some symlinks will automatically be created between the objects.
1547Example:
1548 libarm_compute_core.so -> libarm_compute_core.so.1.0.0
1549 libarm_compute_core.so.1 -> libarm_compute_core.so.1.0.0
1550 libarm_compute_core.so.1.0.0
1551
1552@note This options is disabled by default as it requires SCons version 2.4 or above.
1553
Anthony Barbier79c61782017-06-23 11:48:24 +01001554@b extra_cxx_flags: Custom CXX flags which will be appended to the end of the build command.
1555
1556@b build_dir: Build the library in a subfolder of the "build" folder. (Allows to build several configurations in parallel).
1557
1558@b examples: Build or not the examples
1559
1560@b validation_tests: Enable the build of the validation suite.
1561
Anthony Barbier79c61782017-06-23 11:48:24 +01001562@b benchmark_tests: Enable the build of the benchmark tests
1563
1564@b pmu: Enable the PMU cycle counter to measure execution time in benchmark tests. (Your device needs to support it)
1565
Anthony Barbier6a5627a2017-09-26 14:42:02 +01001566@b mali: Enable the collection of Mali hardware counters to measure execution time in benchmark tests. (Your device needs to have a Mali driver that supports it)
1567
Sheri Zhangac6499a2021-02-10 15:32:38 +00001568@b openmp Build in the OpenMP scheduler for Neon.
Anthony Barbier79c61782017-06-23 11:48:24 +01001569
1570@note Only works when building with g++ not clang++
1571
Sheri Zhangac6499a2021-02-10 15:32:38 +00001572@b cppthreads Build in the C++11 scheduler for Neon.
Anthony Barbier79c61782017-06-23 11:48:24 +01001573
Anthony Barbier3762e742018-03-02 11:49:33 +00001574@sa Scheduler::set
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001575
Michele Di Giorgio72610dc2020-11-18 15:29:08 +00001576@b external_tests_dir Add examples, benchmarks and tests to the tests suite from an external path ( /path/to/external_tests_dir )
1577
1578In order to use this option, the external tests directory must have the following structure:
1579
1580 EXTERNAL_TESTS_DIR:
1581 └── tests
1582 ├── benchmark
1583 │   ├── CL
1584 │   ├── datasets
1585 │   ├── fixtures
Sheri Zhangac6499a2021-02-10 15:32:38 +00001586 │   └── Neon
Michele Di Giorgio72610dc2020-11-18 15:29:08 +00001587 └── validation
1588    ├── CL
1589     ├── datasets
1590     ├── fixtures
Sheri Zhangac6499a2021-02-10 15:32:38 +00001591     └── Neon
Michele Di Giorgio72610dc2020-11-18 15:29:08 +00001592
1593Then, build the library with `external_tests_dir=<PATH_TO_EXTERNAL_TESTS_DIR>`.
1594
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001595@subsection S3_2_linux Building for Linux
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001596
1597@subsubsection S3_2_1_library How to build the library ?
1598
1599For Linux, the library was successfully built and tested using the following Linaro GCC toolchain:
1600
Michele Di Giorgio36a551f2020-04-23 11:55:29 +01001601 - gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf
1602 - gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001603
Sheri Zhangac6499a2021-02-10 15:32:38 +00001604To cross-compile the library in debug mode, with Neon only support, for Linux 32bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001605
1606 scons Werror=1 -j8 debug=1 neon=1 opencl=0 os=linux arch=armv7a
1607
1608To cross-compile the library in asserts mode, with OpenCL only support, for Linux 64bit:
1609
1610 scons Werror=1 -j8 debug=0 asserts=1 neon=0 opencl=1 embed_kernels=1 os=linux arch=arm64-v8a
1611
Sheri Zhangac6499a2021-02-10 15:32:38 +00001612You can also compile the library natively on an Arm device by using <b>build=native</b>:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001613
1614 scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=linux arch=arm64-v8a build=native
1615 scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=linux arch=armv7a build=native
1616
Sheri Zhangac6499a2021-02-10 15:32:38 +00001617@note g++ for Arm is mono-arch, therefore if you want to compile for Linux 32bit on a Linux 64bit platform you will have to use a cross compiler.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001618
1619For example on a 64bit Debian based system you would have to install <b>g++-arm-linux-gnueabihf</b>
1620
1621 apt-get install g++-arm-linux-gnueabihf
1622
1623Then run
1624
1625 scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=linux arch=armv7a build=cross_compile
1626
1627or simply remove the build parameter as build=cross_compile is the default value:
1628
1629 scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=linux arch=armv7a
1630
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001631@subsubsection S3_2_2_examples How to manually build the examples ?
1632
1633The examples get automatically built by scons as part of the build process of the library described above. This section just describes how you can build and link your own application against our library.
1634
Sheri Zhang7a7f4e02020-08-28 20:08:49 +01001635@note The following command lines assume the arm_compute libraries are present in the current directory or in the system library path. If this is not the case you can specify the location of the pre-built libraries with the compiler option -L. When building the OpenCL example the commands below assume that the CL headers are located in the include folder where the command is executed.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001636
Sheri Zhangac6499a2021-02-10 15:32:38 +00001637To cross compile a Neon example for Linux 32bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001638
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001639 arm-linux-gnueabihf-g++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -mfpu=neon -L. -larm_compute -larm_compute_core -o neon_convolution
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001640
Sheri Zhangac6499a2021-02-10 15:32:38 +00001641To cross compile a Neon example for Linux 64bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001642
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001643 aarch64-linux-gnu-g++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -L. -larm_compute -larm_compute_core -o neon_convolution
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001644
1645(notice the only difference with the 32 bit command is that we don't need the -mfpu option and the compiler's name is different)
1646
1647To cross compile an OpenCL example for Linux 32bit:
1648
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001649 arm-linux-gnueabihf-g++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -mfpu=neon -L. -larm_compute -larm_compute_core -o cl_convolution -DARM_COMPUTE_CL
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001650
1651To cross compile an OpenCL example for Linux 64bit:
1652
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001653 aarch64-linux-gnu-g++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -L. -larm_compute -larm_compute_core -o cl_convolution -DARM_COMPUTE_CL
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001654
1655(notice the only difference with the 32 bit command is that we don't need the -mfpu option and the compiler's name is different)
1656
Anthony Barbier14c86a92017-12-14 16:27:41 +00001657To cross compile the examples with the Graph API, such as graph_lenet.cpp, you need to link the examples against arm_compute_graph.so too.
1658
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001659i.e. to cross compile the "graph_lenet" example for Linux 32bit:
1660
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001661 arm-linux-gnueabihf-g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp utils/CommonGraphOptions.cpp -I. -Iinclude -std=c++14 -mfpu=neon -L. -larm_compute_graph -larm_compute -larm_compute_core -Wl,--allow-shlib-undefined -o graph_lenet
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001662
1663i.e. to cross compile the "graph_lenet" example for Linux 64bit:
1664
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001665 aarch64-linux-gnu-g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp utils/CommonGraphOptions.cpp -I. -Iinclude -std=c++14 -L. -larm_compute_graph -larm_compute -larm_compute_core -Wl,--allow-shlib-undefined -o graph_lenet
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001666
1667(notice the only difference with the 32 bit command is that we don't need the -mfpu option and the compiler's name is different)
1668
Anthony Barbiere5007472017-10-27 15:01:44 +01001669@note If compiling using static libraries, this order must be followed when linking: arm_compute_graph_static, arm_compute, arm_compute_core
1670
Sheri Zhangac6499a2021-02-10 15:32:38 +00001671To compile natively (i.e directly on an Arm device) for Neon for Linux 32bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001672
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001673 g++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -mfpu=neon -larm_compute -larm_compute_core -o neon_convolution
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001674
Sheri Zhangac6499a2021-02-10 15:32:38 +00001675To compile natively (i.e directly on an Arm device) for Neon for Linux 64bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001676
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001677 g++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -larm_compute -larm_compute_core -o neon_convolution
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001678
1679(notice the only difference with the 32 bit command is that we don't need the -mfpu option)
1680
Sheri Zhangac6499a2021-02-10 15:32:38 +00001681To compile natively (i.e directly on an Arm device) for OpenCL for Linux 32bit or Linux 64bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001682
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001683 g++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -larm_compute -larm_compute_core -o cl_convolution -DARM_COMPUTE_CL
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001684
Anthony Barbier14c86a92017-12-14 16:27:41 +00001685To compile natively the examples with the Graph API, such as graph_lenet.cpp, you need to link the examples against arm_compute_graph.so too.
Anthony Barbier14c86a92017-12-14 16:27:41 +00001686
1687i.e. to natively compile the "graph_lenet" example for Linux 32bit:
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001688
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001689 g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp utils/CommonGraphOptions.cpp -I. -Iinclude -std=c++14 -mfpu=neon -L. -larm_compute_graph -larm_compute -larm_compute_core -Wl,--allow-shlib-undefined -o graph_lenet
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001690
Anthony Barbier14c86a92017-12-14 16:27:41 +00001691i.e. to natively compile the "graph_lenet" example for Linux 64bit:
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001692
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001693 g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp utils/CommonGraphOptions.cpp -I. -Iinclude -std=c++14 -L. -larm_compute_graph -larm_compute -larm_compute_core -Wl,--allow-shlib-undefined -o graph_lenet
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001694
1695(notice the only difference with the 32 bit command is that we don't need the -mfpu option)
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001696
Anthony Barbiere5007472017-10-27 15:01:44 +01001697@note If compiling using static libraries, this order must be followed when linking: arm_compute_graph_static, arm_compute, arm_compute_core
1698
Gian Marco Iodicef94c6742020-06-26 12:35:09 +01001699@note These two commands assume libarm_compute.so is available in your library path, if not add the path to it using -L (e.g. -Llib/linux-arm64-v8a-neon-cl-asserts/)
Georgios Pinitas58216322020-02-26 11:13:13 +00001700@note You might need to export the path to OpenCL library as well in your LD_LIBRARY_PATH if Compute Library was built with OpenCL enabled.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001701
1702To run the built executable simply run:
1703
1704 LD_LIBRARY_PATH=build ./neon_convolution
1705
1706or
1707
1708 LD_LIBRARY_PATH=build ./cl_convolution
1709
Georgios Pinitas9f28b392018-07-18 20:01:53 +01001710@note Examples accept different types of arguments, to find out what they are run the example with \a --help as an argument. If no arguments are specified then random values will be used to execute the graph.
Anthony Barbier3762e742018-03-02 11:49:33 +00001711
1712For example:
Anthony Barbier38e7f1f2018-05-21 13:37:47 +01001713
Georgios Pinitas9f28b392018-07-18 20:01:53 +01001714 LD_LIBRARY_PATH=. ./graph_lenet --help
Anthony Barbier3762e742018-03-02 11:49:33 +00001715
Georgios Pinitas9f28b392018-07-18 20:01:53 +01001716Below is a list of the common parameters among the graph examples :
1717@snippet utils/CommonGraphOptions.h Common graph examples parameters
Anthony Barbier3762e742018-03-02 11:49:33 +00001718
Manuel Bottinie5a9ad82020-11-18 16:22:16 +00001719@subsubsection S3_2_3_sve Build for SVE or SVE2
1720
1721In order to build for SVE or SVE2 you need a compiler that supports them. You can find more information in the following these links:
1722 -# GCC: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/sve-support
1723 -# LLVM: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/llvm-toolchain/sve-support
1724
1725@note You the need to indicate the toolchains using the scons "toolchain_prefix" parameter.
1726
1727An example build command with SVE is:
1728
1729 scons arch=arm64-v8.2-a-sve os=linux build_dir=arm64 -j55 standalone=0 opencl=0 openmp=0 validation_tests=1 neon=1 cppthreads=1 toolchain_prefix=aarch64-none-linux-gnu-
1730
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001731@subsection S3_3_android Building for Android
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001732
1733For Android, the library was successfully built and tested using Google's standalone toolchains:
Michele Di Giorgio36a551f2020-04-23 11:55:29 +01001734 - clang++ from NDK r18b for armv7a
Giorgio Arenacd7d1782021-02-22 14:58:37 +00001735 - clang++ from NDK r20b for arm64-v8a
1736 - clang++ from NDK r20b for arm64-v8.2-a with FP16 support
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001737
Giorgio Arenacd7d1782021-02-22 14:58:37 +00001738Here is a guide to <a href="https://developer.android.com/ndk/guides/standalone_toolchain.html">create your Android standalone toolchains from the NDK</a>. Minimum NDK version required: r18b
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001739
Sheri Zhang7a7f4e02020-08-28 20:08:49 +01001740- Download the NDK r18b from here: https://developer.android.com/ndk/downloads/index.html to directory $NDK
Georgios Pinitasf112ede2019-03-01 19:11:20 +00001741- Make sure you have Python 2.7 installed on your machine.
Sheri Zhang7a7f4e02020-08-28 20:08:49 +01001742- Generate the 32 and/or 64 toolchains by running the following commands to your toolchain dirctory $MY_TOOLCHAINS:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001743
Anthony Barbier38e7f1f2018-05-21 13:37:47 +01001744
Michele Di Giorgio36a551f2020-04-23 11:55:29 +01001745 $NDK/build/tools/make_standalone_toolchain.py --arch arm64 --install-dir $MY_TOOLCHAINS/aarch64-linux-android-ndk-r18b --stl libc++ --api 21
1746 $NDK/build/tools/make_standalone_toolchain.py --arch arm --install-dir $MY_TOOLCHAINS/arm-linux-android-ndk-r18b --stl libc++ --api 21
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001747
Anthony Barbierd51ea0a2018-08-07 17:48:03 +01001748@attention We used to use gnustl but as of NDK r17 it is deprecated so we switched to libc++
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001749
Anthony Barbier38e7f1f2018-05-21 13:37:47 +01001750@note Make sure to add the toolchains to your PATH:
1751
Michele Di Giorgio36a551f2020-04-23 11:55:29 +01001752 export PATH=$PATH:$MY_TOOLCHAINS/aarch64-linux-android-ndk-r18b/bin:$MY_TOOLCHAINS/arm-linux-android-ndk-r18b/bin
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001753
1754@subsubsection S3_3_1_library How to build the library ?
1755
Sheri Zhangac6499a2021-02-10 15:32:38 +00001756To cross-compile the library in debug mode, with Neon only support, for Android 32bit:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001757
1758 CXX=clang++ CC=clang scons Werror=1 -j8 debug=1 neon=1 opencl=0 os=android arch=armv7a
1759
1760To cross-compile the library in asserts mode, with OpenCL only support, for Android 64bit:
1761
Anthony Barbier14c86a92017-12-14 16:27:41 +00001762 CXX=clang++ CC=clang scons Werror=1 -j8 debug=0 asserts=1 neon=0 opencl=1 embed_kernels=1 os=android arch=arm64-v8a
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001763
1764@subsubsection S3_3_2_examples How to manually build the examples ?
1765
1766The examples get automatically built by scons as part of the build process of the library described above. This section just describes how you can build and link your own application against our library.
1767
Sheri Zhang7a7f4e02020-08-28 20:08:49 +01001768@note The following command lines assume the arm_compute libraries are present in the current directory or in the system library path. If this is not the case you can specify the location of the pre-built libraries with the compiler option -L. When building the OpenCL example the commands below assume that the CL headers are located in the include folder where the command is executed.
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001769
1770Once you've got your Android standalone toolchain built and added to your path you can do the following:
1771
Sheri Zhangac6499a2021-02-10 15:32:38 +00001772To cross compile a Neon example:
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001773
1774 #32 bit:
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001775 arm-linux-androideabi-clang++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -larm_compute-static -larm_compute_core-static -L. -o neon_convolution_arm -static-libstdc++ -pie
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001776 #64 bit:
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001777 aarch64-linux-android-clang++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -larm_compute-static -larm_compute_core-static -L. -o neon_convolution_aarch64 -static-libstdc++ -pie
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001778
1779To cross compile an OpenCL example:
1780
1781 #32 bit:
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001782 arm-linux-androideabi-clang++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -larm_compute-static -larm_compute_core-static -L. -o cl_convolution_arm -static-libstdc++ -pie -DARM_COMPUTE_CL
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001783 #64 bit:
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001784 aarch64-linux-android-clang++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++14 -larm_compute-static -larm_compute_core-static -L. -o cl_convolution_aarch64 -static-libstdc++ -pie -DARM_COMPUTE_CL
Anthony Barbier14c86a92017-12-14 16:27:41 +00001785
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001786To cross compile the examples with the Graph API, such as graph_lenet.cpp, you need to link the library arm_compute_graph also.
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001787
1788 #32 bit:
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001789 arm-linux-androideabi-clang++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp utils/CommonGraphOptions.cpp -I. -Iinclude -std=c++14 -Wl,--whole-archive -larm_compute_graph-static -Wl,--no-whole-archive -larm_compute-static -larm_compute_core-static -L. -o graph_lenet_arm -static-libstdc++ -pie -DARM_COMPUTE_CL
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001790 #64 bit:
Georgios Pinitas40f51a62020-11-21 03:04:18 +00001791 aarch64-linux-android-clang++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp utils/CommonGraphOptions.cpp -I. -Iinclude -std=c++14 -Wl,--whole-archive -larm_compute_graph-static -Wl,--no-whole-archive -larm_compute-static -larm_compute_core-static -L. -o graph_lenet_aarch64 -static-libstdc++ -pie -DARM_COMPUTE_CL
Gian Marco Iodicedaec1aa2017-09-29 12:03:18 +01001792
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001793@note Due to some issues in older versions of the Mali OpenCL DDK (<= r13p0), we recommend to link arm_compute statically on Android.
Anthony Barbier20dbb822017-12-13 21:19:39 +00001794@note When linked statically the arm_compute_graph library currently needs the --whole-archive linker flag in order to work properly
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001795
1796Then you need to do is upload the executable and the shared library to the device using ADB:
1797
1798 adb push neon_convolution_arm /data/local/tmp/
1799 adb push cl_convolution_arm /data/local/tmp/
Anthony Barbier14c86a92017-12-14 16:27:41 +00001800 adb push gc_absdiff_arm /data/local/tmp/
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001801 adb shell chmod 777 -R /data/local/tmp/
1802
1803And finally to run the example:
1804
1805 adb shell /data/local/tmp/neon_convolution_arm
1806 adb shell /data/local/tmp/cl_convolution_arm
Anthony Barbier14c86a92017-12-14 16:27:41 +00001807 adb shell /data/local/tmp/gc_absdiff_arm
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001808
1809For 64bit:
1810
1811 adb push neon_convolution_aarch64 /data/local/tmp/
1812 adb push cl_convolution_aarch64 /data/local/tmp/
Anthony Barbier14c86a92017-12-14 16:27:41 +00001813 adb push gc_absdiff_aarch64 /data/local/tmp/
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001814 adb shell chmod 777 -R /data/local/tmp/
1815
1816And finally to run the example:
1817
1818 adb shell /data/local/tmp/neon_convolution_aarch64
1819 adb shell /data/local/tmp/cl_convolution_aarch64
Anthony Barbier14c86a92017-12-14 16:27:41 +00001820 adb shell /data/local/tmp/gc_absdiff_aarch64
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001821
Georgios Pinitas9f28b392018-07-18 20:01:53 +01001822@note Examples accept different types of arguments, to find out what they are run the example with \a --help as an argument. If no arguments are specified then random values will be used to execute the graph.
Anthony Barbier3762e742018-03-02 11:49:33 +00001823
1824For example:
Georgios Pinitas9f28b392018-07-18 20:01:53 +01001825 adb shell /data/local/tmp/graph_lenet --help
Anthony Barbier3762e742018-03-02 11:49:33 +00001826
Sheri Zhangac6499a2021-02-10 15:32:38 +00001827In this case the first argument of LeNet (like all the graph examples) is the target (i.e 0 to run on Neon, 1 to run on OpenCL if available, 2 to run on OpenCL using the CLTuner), the second argument is the path to the folder containing the npy files for the weights and finally the third argument is the number of batches to run.
Anthony Barbier3762e742018-03-02 11:49:33 +00001828
Georgios Pinitas45514032020-12-30 00:03:09 +00001829@subsection S3_4_macos Building for macOS
1830
1831The library was successfully natively built for Apple Silicon under macOS 11.1 using clang v12.0.0.
1832
1833To natively compile the library with accelerated CPU support:
1834
1835 scons Werror=1 -j8 neon=1 opencl=0 os=macos arch=arm64-v8a build=native
1836
1837@note Initial support disables feature discovery through HWCAPS and thread scheduling affinity controls
1838
1839@subsection S3_5_bare_metal Building for bare metal
Michalis Spyrou6e52ba32017-10-04 15:40:38 +01001840
Georgios Pinitas58216322020-02-26 11:13:13 +00001841For bare metal, the library was successfully built using linaro's latest (gcc-linaro-6.3.1-2017.05) bare metal toolchains:
Michalis Spyrou6e52ba32017-10-04 15:40:38 +01001842 - arm-eabi for armv7a
1843 - aarch64-elf for arm64-v8a
1844
1845Download linaro for <a href="https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/">armv7a</a> and <a href="https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-elf/">arm64-v8a</a>.
1846
1847@note Make sure to add the toolchains to your PATH: export PATH=$PATH:$MY_TOOLCHAINS/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-elf/bin:$MY_TOOLCHAINS/gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi/bin
1848
Georgios Pinitas45514032020-12-30 00:03:09 +00001849@subsubsection S3_5_1_library How to build the library ?
Michalis Spyrou6e52ba32017-10-04 15:40:38 +01001850
Sheri Zhangac6499a2021-02-10 15:32:38 +00001851To cross-compile the library with Neon support for baremetal arm64-v8a:
Michalis Spyrou6e52ba32017-10-04 15:40:38 +01001852
1853 scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=bare_metal arch=arm64-v8a build=cross_compile cppthreads=0 openmp=0 standalone=1
1854
Georgios Pinitas45514032020-12-30 00:03:09 +00001855@subsubsection S3_5_2_examples How to manually build the examples ?
Michalis Spyrou6e52ba32017-10-04 15:40:38 +01001856
1857Examples are disabled when building for bare metal. If you want to build the examples you need to provide a custom bootcode depending on the target architecture and link against the compute library. More information about bare metal bootcode can be found <a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0527a/index.html">here</a>.
1858
Georgios Pinitas45514032020-12-30 00:03:09 +00001859@subsection S3_6_windows_host Building on a Windows host system
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001860
1861Using `scons` directly from the Windows command line is known to cause
1862problems. The reason seems to be that if `scons` is setup for cross-compilation
1863it gets confused about Windows style paths (using backslashes). Thus it is
1864recommended to follow one of the options outlined below.
1865
Georgios Pinitas45514032020-12-30 00:03:09 +00001866@subsubsection S3_6_1_ubuntu_on_windows Bash on Ubuntu on Windows
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001867
Gian Marco Iodice5fc07aa2019-05-15 17:08:02 +01001868The best and easiest option is to use
1869<a href="https://msdn.microsoft.com/en-gb/commandline/wsl/about">Ubuntu on Windows</a>.
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001870This feature is still marked as *beta* and thus might not be available.
1871However, if it is building the library is as simple as opening a *Bash on
1872Ubuntu on Windows* shell and following the general guidelines given above.
1873
Georgios Pinitas45514032020-12-30 00:03:09 +00001874@subsubsection S3_6_2_cygwin Cygwin
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001875
Gian Marco Iodice5fc07aa2019-05-15 17:08:02 +01001876If the Windows subsystem for Linux is not available <a href="https://www.cygwin.com/">Cygwin</a>
Pablo Tello78a5d222019-08-06 10:09:18 +01001877can be used to install and run `scons`, the minimum Cygwin version must be 3.0.7 or later. In addition
1878to the default packages installed by Cygwin `scons` has to be selected in the installer. (`git` might
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001879also be useful but is not strictly required if you already have got the source
Gian Marco Iodice5fc07aa2019-05-15 17:08:02 +01001880code of the library.) Linaro provides pre-built versions of
1881<a href="http://releases.linaro.org/components/toolchain/binaries/">GCC cross-compilers</a>
Moritz Pflanzer07674de2017-07-21 09:39:36 +01001882that can be used from the Cygwin terminal. When building for Android the
1883compiler is included in the Android standalone toolchain. After everything has
1884been set up in the Cygwin terminal the general guide on building the library
1885can be followed.
1886
Georgios Pinitas45514032020-12-30 00:03:09 +00001887@subsection S3_7_cl_requirements OpenCL DDK Requirements
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001888
Georgios Pinitas45514032020-12-30 00:03:09 +00001889@subsubsection S3_7_1_cl_hard_requirements Hard Requirements
Georgios Pinitasd9cb0572018-07-16 12:23:09 +01001890
1891Compute Library requires OpenCL 1.1 and above with support of non uniform workgroup sizes, which is officially supported in the Mali OpenCL DDK r8p0 and above as an extension (respective extension flag is \a -cl-arm-non-uniform-work-group-size).
1892
1893Enabling 16-bit floating point calculations require \a cl_khr_fp16 extension to be supported. All Mali GPUs with compute capabilities have native support for half precision floating points.
1894
1895Use of @ref CLMeanStdDev function requires 64-bit atomics support, thus \a cl_khr_int64_base_atomics should be supported in order to use.
1896
Georgios Pinitas45514032020-12-30 00:03:09 +00001897@subsubsection S3_7_2_cl_performance_requirements Performance improvements
Georgios Pinitasd9cb0572018-07-16 12:23:09 +01001898
1899Integer dot product built-in function extensions (and therefore optimized kernels) are available with Mali OpenCL DDK r22p0 and above for the following GPUs : G71, G76. The relevant extensions are \a cl_arm_integer_dot_product_int8, \a cl_arm_integer_dot_product_accumulate_int8 and \a cl_arm_integer_dot_product_accumulate_int16.
1900
1901OpenCL kernel level debugging can be simplified with the use of printf, this requires the \a cl_arm_printf extension to be supported.
1902
1903SVM allocations are supported for all the underlying allocations in Compute Library. To enable this OpenCL 2.0 and above is a requirement.
Gian Marco Iodice201cea12018-07-30 17:21:41 +01001904
Georgios Pinitas45514032020-12-30 00:03:09 +00001905@subsection S3_8_cl_tuner OpenCL Tuner
Gian Marco Iodice201cea12018-07-30 17:21:41 +01001906
1907The OpenCL tuner, a.k.a. CLTuner, is a module of Arm Compute Library that can improve the performance of the OpenCL kernels tuning the Local-Workgroup-Size (LWS).
1908The optimal LWS for each unique OpenCL kernel configuration is stored in a table. This table can be either imported or exported from/to a file.
Vidhya Sudhan Loganathandc5d3432019-04-29 11:44:11 +01001909The OpenCL tuner runs the same OpenCL kernel for a range of local workgroup sizes and keeps the local workgroup size of the fastest run to use in subsequent calls to the kernel. It supports three modes of tuning with different trade-offs between the time taken to tune and the kernel execution time achieved using the best LWS found. In the Exhaustive mode, it searches all the supported values of LWS. This mode takes the longest time to tune and is the most likely to find the optimal LWS. Normal mode searches a subset of LWS values to yield a good approximation of the optimal LWS. It takes less time to tune than Exhaustive mode. Rapid mode takes the shortest time to tune and finds an LWS value that is at least as good or better than the default LWS value. The mode affects only the search for the optimal LWS and has no effect when the LWS value is imported from a file.
Gian Marco Iodice201cea12018-07-30 17:21:41 +01001910In order for the performance numbers to be meaningful you must disable the GPU power management and set it to a fixed frequency for the entire duration of the tuning phase.
1911
1912If you wish to know more about LWS and the important role on improving the GPU cache utilization, we suggest having a look at the presentation "Even Faster CNNs: Exploring the New Class of Winograd Algorithms available at the following link:
1913
1914https://www.embedded-vision.com/platinum-members/arm/embedded-vision-training/videos/pages/may-2018-embedded-vision-summit-iodice
1915
1916Tuning a network from scratch can be long and affect considerably the execution time for the first run of your network. It is recommended for this reason to store the CLTuner's result in a file to amortize this time when you either re-use the same network or the functions with the same configurations. The tuning is performed only once for each OpenCL kernel.
1917
1918CLTuner looks for the optimal LWS for each unique OpenCL kernel configuration. Since a function (i.e. Convolution Layer, Pooling Layer, Fully Connected Layer ...) can be called multiple times but with different parameters, we associate an "id" (called "config_id") to each kernel to distinguish the unique configurations.
1919
1920 #Example: 2 unique Matrix Multiply configurations
1921@code{.cpp}
1922 TensorShape a0 = TensorShape(32,32);
1923 TensorShape b0 = TensorShape(32,32);
1924 TensorShape c0 = TensorShape(32,32);
1925 TensorShape a1 = TensorShape(64,64);
1926 TensorShape b1 = TensorShape(64,64);
1927 TensorShape c1 = TensorShape(64,64);
1928
1929 Tensor a0_tensor;
1930 Tensor b0_tensor;
1931 Tensor c0_tensor;
1932 Tensor a1_tensor;
1933 Tensor b1_tensor;
1934 Tensor c1_tensor;
1935
1936 a0_tensor.allocator()->init(TensorInfo(a0, 1, DataType::F32));
1937 b0_tensor.allocator()->init(TensorInfo(b0, 1, DataType::F32));
1938 c0_tensor.allocator()->init(TensorInfo(c0, 1, DataType::F32));
1939 a1_tensor.allocator()->init(TensorInfo(a1, 1, DataType::F32));
1940 b1_tensor.allocator()->init(TensorInfo(b1, 1, DataType::F32));
1941 c1_tensor.allocator()->init(TensorInfo(c1 1, DataType::F32));
1942
1943 CLGEMM gemm0;
1944 CLGEMM gemm1;
1945
1946 // Configuration 0
1947 gemm0.configure(&a0, &b0, nullptr, &c0, 1.0f, 0.0f);
1948
1949 // Configuration 1
1950 gemm1.configure(&a1, &b1, nullptr, &c1, 1.0f, 0.0f);
1951@endcode
1952
Georgios Pinitas45514032020-12-30 00:03:09 +00001953@subsubsection S3_8_1_cl_tuner_how_to How to use it
Gian Marco Iodice201cea12018-07-30 17:21:41 +01001954
Michele Di Giorgio57f30a92020-09-08 14:03:51 +01001955All the graph examples in the Compute Library's folder "examples" and the arm_compute_benchmark accept an argument to enable the OpenCL tuner and an argument to export/import the LWS values to/from a file
Gian Marco Iodice201cea12018-07-30 17:21:41 +01001956
1957 #Enable CL tuner
1958 ./graph_mobilenet --enable-tuner –-target=CL
1959 ./arm_compute_benchmark --enable-tuner
1960
1961 #Export/Import to/from a file
1962 ./graph_mobilenet --enable-tuner --target=CL --tuner-file=acl_tuner.csv
1963 ./arm_compute_benchmark --enable-tuner --tuner-file=acl_tuner.csv
1964
1965If you are importing the CLTuner'results from a file, the new tuned LWS values will be appended to it.
1966
1967Either you are benchmarking the graph examples or the test cases in the arm_compute_benchmark remember to:
1968
1969 -# Disable the power management
1970 -# Keep the GPU frequency constant
1971 -# Run multiple times the network (i.e. 10).
1972
1973If you are not using the graph API or the benchmark infrastructure you will need to manually pass a CLTuner object to CLScheduler before configuring any function.
1974
1975@code{.cpp}
1976CLTuner tuner;
1977
1978// Setup Scheduler
1979CLScheduler::get().default_init(&tuner);
1980@endcode
1981
1982After the first run, the CLTuner's results can be exported to a file using the method "save_to_file()".
1983- tuner.save_to_file("results.csv");
1984
1985This file can be also imported using the method "load_from_file("results.csv")".
1986- tuner.load_from_file("results.csv");
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001987*/
Anthony Barbierd51ea0a2018-08-07 17:48:03 +01001988} // namespace arm_compute