commit | a5f9e76b991d9d69d3242b26be137956d0f4d0a8 | [log] [tgz] |
---|---|---|
author | Matteo Martincigh <matteo.martincigh@arm.com> | Mon Jun 17 13:26:34 2019 +0100 |
committer | Matteo Martincigh <matteo.martincigh@arm.com> | Mon Jun 17 14:56:39 2019 +0100 |
tree | 16e376328203787d604b0b2f9c61509e7c09b67d | |
parent | 44cfd848c1913f87a77c0427450dba93ba47fb94 [diff] |
IVGCVSW-2779 Fix Android Q build * Included required functions to the Android Q build by using macro ARMNN_ANDROID_NN_V1_2 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I3ea99ba4bebd85f0e8e69c72a90e1a7def4f9b35
This directory contains the ArmNN driver for the Android Neural Networks API, implementing the android.hardware.neuralnetworks@1.0 HAL and android.hardware.neuralnetworks@1.1 HAL.
For more information about supported operations and configurations, see NnapiSupport.txt
<ANDROID_ROOT>
Please Note: ArmNN Neural Networks driver does not currently support Mali OpenCL driver for Android Q.
<ANDROID_ROOT>/vendor/arm/android-nn-driver
system/vendor/bin/hw
directory in the Android image. To update the build environment, add to the contents of the variable PRODUCT_PACKAGES
within the device-specific makefile that is located in the <ANDROID_ROOT>/device/<manufacturer>/<product>
directory. This file is normally called device.mk
:For Android P or Q, using NN API version (1.0), the following should be added to device.mk
:
For Android P or Q, a new version of the NN API is available (1.1), thus the following should be added to device.mk
instead:
Similarly, the Neon or CL backend can be enabled/disabled by setting ARMNN_COMPUTE_CL_ENABLE or ARMNN_COMPUTE_NEON_ENABLE in device.mk
:
For Android P and Android Q the vendor manifest.xml requires the Neural Network HAL information.
<hal format="hidl"> <name>android.hardware.neuralnetworks</name> <transport>hwbinder</transport> <version>1.1</version> <interface> <name>IDevice</name> <instance>armnn</instance> </interface> <fqname>@1.1::IDevice/armnn</fqname> </hal>
make
in <ANDROID_ROOT>
Android P
For example, if the ArmNN driver has been built with the NN API 1.0, check for the following file:
Android Q has a different path:
NeuralNetworksTest
unit tests (note this is an optional component that must be built).ArmnnDriver
tag.The GPU tuner is a feature of the Compute Library that finds optimum values for GPU acceleration tuning parameters. There are three levels of tuning: exhaustive, normal and rapid. Exhaustive means that all lws values are tested. Normal means that a reduced number of lws values are tested, but that generally is sufficient to have a performance close enough to the exhaustive approach. Rapid means that only 3 lws values should be tested for each kernel. The recommended way of using it with ArmNN is to generate the tuning data during development of the Android image for a device, and use it in read-only mode during normal operation:
The android-nn-driver is provided under the MIT license. See LICENSE for more information. Contributions to this project are accepted under the same license.
Individual files contain the following tag instead of the full license text.
SPDX-License-Identifier: MIT
This enables machine processing of license information based on the SPDX License Identifiers that are available here: http://spdx.org/licenses/