commit | 69558df6f149647888267caabf72de6b05fb6d53 | [log] [tgz] |
---|---|---|
author | Matteo Martincigh <matteo.martincigh@arm.com> | Fri Aug 31 16:18:19 2018 +0100 |
committer | Matthew Bentham <matthew.bentham@arm.com> | Tue Sep 18 12:40:38 2018 +0100 |
tree | 988de8315ae2a1916fb76a6664910e5d4d41c940 | |
parent | 3b0a2dad430654b0ad4124e5055a92d7c19ae786 [diff] |
Fix for building the NN Driver correctly without having to set ALLOW_MISSING_DEPENDENCIES to true on Android versions that don't provide all the HAL versions supported by the NN Driver Change-Id: I7c828649499ca1d7cb26feb93f559e9f1eae33c7
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>
<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 O or Android P, using NN API version (1.0), the following should be added to device.mk
:
For Android P, a new version of the NN API is available (1.1), thus the following should be added to device.mk
instead:
make
in <ANDROID_ROOT>
For example, if the ArmNN driver has been built with the NN API 1.0, check for the following file:
Please Note: Android O is only compatible with NN API version 1.0.
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. 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: