From ef08a1179a707f4d93616403c2c6e0d143f71351 Mon Sep 17 00:00:00 2001 From: Kevin May Date: Mon, 20 May 2019 15:44:37 +0100 Subject: IVGCVSW-3127 Add Documentation for NN-Driver Android Q * Update README file !android-nn-driver:1139 Signed-off-by: Kevin May Change-Id: Iee296fc1f45b70f376e0a3f03bfdeec13e552e25 --- README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dab362d2..18a1b436 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ For more information about supported operations and configurations, see NnapiSup 1. Android source tree for Android O MR1 or later, in the directory `` 2. Mali OpenCL driver integrated into the Android source tree +Please Note: ArmNN Neural Networks driver does not currently support Mali OpenCL driver for Android Q. + ### Procedure 1. Place this source directory at `/vendor/arm/android-nn-driver` @@ -21,17 +23,24 @@ To update the build environment, add to the contents of the variable `PRODUCT_PA within the device-specific makefile that is located in the `/device//` 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 O, P or Q, using NN API version (1.0), the following should be added to `device.mk`:
 PRODUCT_PACKAGES += android.hardware.neuralnetworks@1.0-service-armnn
 
-For Android P, a new version of the NN API is available (1.1), + +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:
 PRODUCT_PACKAGES += android.hardware.neuralnetworks@1.1-service-armnn
 
`Android.mk` contains the module definition of both versions of the ArmNN driver. -For Android P the vendor manifest.xml requires the Neural Network HAL information. +Similarly, the Neon or CL backend can be enabled/disabled by setting ARMNN_COMPUTE_CL_ENABLE or +ARMNN_COMPUTE_NEON_ENABLE in `device.mk`: +
+ARMNN_COMPUTE_CL_ENABLE := 1
+
+ +For Android P and Android Q the vendor manifest.xml requires the Neural Network HAL information. ```xml android.hardware.neuralnetworks @@ -48,12 +57,18 @@ For Android P the vendor manifest.xml requires the Neural Network HAL informatio 4. Build Android as normal, i.e. run `make` in `` 5. To confirm that the ArmNN driver has been built, check for driver service executable at +Android O and Android P
-/out/target/product/system/vendor/bin/hw
+/out/target/product//system/vendor/bin/hw
 
For example, if the ArmNN driver has been built with the NN API 1.0, check for the following file:
-/out/target/product/system/vendor/bin/hw/android.hardware.neuralnetworks@1.0-service-armnn
+/out/target/product//system/vendor/bin/hw/android.hardware.neuralnetworks@1.0-service-armnn
+
+ +Android Q has a different path: +
+/out/target/product//vendor/bin/hw
 
Please Note: Android O is only compatible with NN API version 1.0. -- cgit v1.2.1