blob: 15c95f71038d336c42e35ec187fc39e4176487f1 [file] [log] [blame]
Sheri Zhangd813bab2021-04-30 16:53:41 +01001///
Felix Thomasmathibalan0c490242024-02-12 13:48:29 +00002/// Copyright (c) 2017-2024 Arm Limited.
Sheri Zhangd813bab2021-04-30 16:53:41 +01003///
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///
24namespace arm_compute
25{
Sang-Hoon Parkc9309f22021-05-05 10:34:47 +010026/**
27@mainpage Introduction
28@copydoc introduction
29
30@page introduction Introduction
Sheri Zhangd813bab2021-04-30 16:53:41 +010031
32@tableofcontents
33
34The Compute Library is a collection of low-level machine learning functions optimized for both Arm CPUs and GPUs using SIMD technologies.
35
36Several builds of the library are available using various configurations:
ramy.elgammal@arm.comebb91a22023-08-10 15:34:35 +010037 - OS: Linux®, Android™, macOS or bare metal.
Gunes Bayiree905002022-02-25 15:20:00 +000038 - Architecture: armv7a (32bit) or armv8a (64bit).
Sheri Zhangd813bab2021-04-30 16:53:41 +010039 - Technology: Arm® Neon™ / OpenCL / Arm® Neon™ and OpenCL.
40 - 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.
41
Felix Thomasmathibalan0c490242024-02-12 13:48:29 +000042@warning Depecation Notice from 24.01: NCHW data format specific optimizations will gradually be removed from the code base in
43 future releases. The implication of this is that the user is expected to translate NCHW models into NHWC in
44 order to benefit from the optimizations.
SiCong Li13f96d02022-06-21 10:06:51 +010045
Michele Di Giorgiob43b87a2021-04-30 12:35:03 +010046@b Minimum toolchains requirements are shown below:
47
48<table>
49<tr>
50 <th>Operating System
51 <th>Architecture
52 <th>Minimum Toolchain
53<tr>
ramy.elgammal@arm.comebb91a22023-08-10 15:34:35 +010054 <td rowspan="4">Linux®
Michele Di Giorgiob43b87a2021-04-30 12:35:03 +010055 <td>armv7a
56 <td>gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf
57 <tr>
Gunes Bayiree905002022-02-25 15:20:00 +000058 <td>armv8a
Michele Di Giorgiob43b87a2021-04-30 12:35:03 +010059 <td rowspan="2">gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
60 <tr>
61 <td>armv8.2-a
62 <tr>
63 <td>armv8.2-a-sve
64 <td>gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu
65<tr>
ramy.elgammal@arm.comebb91a22023-08-10 15:34:35 +010066 <td rowspan="3">Android™
Gunes Bayiree905002022-02-25 15:20:00 +000067 <td>armv8a
SiCong Li90e57202023-02-01 14:39:41 +000068 <td rowspan="2">NDK r20b
Michele Di Giorgiob43b87a2021-04-30 12:35:03 +010069 <tr>
70 <td>armv8.2-a
ramy.elgammal@arm.comebb91a22023-08-10 15:34:35 +010071 <tr>
72 <td>armv8.2-a-sve
73 <td>NDK r23b
Adnan AlSinan69854ba2022-02-07 15:28:56 +000074<tr>
75 <td rowspan="1">macOS
76 <td>armv8.2-a
77 <td>Monterey (OS version): clang 13 (native)
Michele Di Giorgiob43b87a2021-04-30 12:35:03 +010078</table>
79
Sheri Zhangd813bab2021-04-30 16:53:41 +010080@section S0_1_contact Contact / Support
81
82Please create an issue on <a href="https://github.com/ARM-software/ComputeLibrary/issues">Github</a>.
83
84In 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:
85
Michalis Spyrou14ce0942022-06-13 15:40:35 +010086 $ strings android-armv8a-cl-asserts/libarm_compute.so | grep arm_compute_version
87 arm_compute_version=v16.12 Build options: {'embed_kernels': '1', 'opencl': '1', 'arch': 'armv8a', 'neon': '0', 'asserts': '1', 'debug': '0', 'os': 'android', 'Werror': '1'} Git hash=f51a545d4ea12a9059fe4e598a092f1fd06dc858
Sheri Zhangd813bab2021-04-30 16:53:41 +010088
89@section S0_2_prebuilt_binaries Pre-built binaries
90
Michele Di Giorgiob43b87a2021-04-30 12:35:03 +010091For each release we provide some pre-built binaries of the library [here](https://github.com/ARM-software/ComputeLibrary/releases).
Sheri Zhangd813bab2021-04-30 16:53:41 +010092
93These binaries have been built using the following toolchains:
ramy.elgammal@arm.comebb91a22023-08-10 15:34:35 +010094 - Linux® armv7a: gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
95 - Linux® armv8a: gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu
96 - Linux® armv8.2-a: gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu
97 - Linux® armv8.2-a (multi-ISA binary): gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu
98 - Linux® armv8.2-a-sve: gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu
99 - Android™ armv8a: clang++ / libc++ NDK r20b
100 - Android™ armv8.2-a: clang++ / libc++ NDK r20b
101 - Android™ armv8.2-a-sve: clang++ / libc++ NDK r23b
Sheri Zhangd813bab2021-04-30 16:53:41 +0100102
103@warning Make sure to use a compatible toolchain to build your application or you will get some std::bad_alloc errors at runtime.
104
105@section S0_3_file_organisation File organisation
106
107This archive contains:
108 - The arm_compute header and source files
109 - The latest Khronos OpenCL 1.2 C headers from the <a href="https://www.khronos.org/registry/cl/">Khronos OpenCL registry</a>
110 - 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)
111 - The latest Khronos EGL 1.5 C headers from the <a href="https://www.khronos.org/registry/gles/">Khronos EGL registry</a>
112 - The sources for a stub version of libOpenCL.so, libGLESv1_CM.so, libGLESv2.so and libEGL.so to help you build your application.
113 - An examples folder containing a few examples to compile and link against the library.
Georgios Pinitas856f66e2021-04-22 21:13:21 +0100114 - A utils folder containing headers with some boiler plate code used by the examples.
Sheri Zhangd813bab2021-04-30 16:53:41 +0100115 - This documentation.
116
117 For detailed information about file organization, please refer to Files -> File List section of this documentation.
118
119*/
120} // namespace arm_compute