aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Raj <nikhil.raj@arm.com>2020-08-25 12:48:16 +0100
committerTeresa Charlin <teresa.charlinreyes@arm.com>2020-08-25 16:11:31 +0100
commit08703acabe8b2efe2f096665352fc9b82f17bf72 (patch)
tree5b98fbbea9acf270ea0160968802ddab5929cce6
parent44f652f3b5081733f2d3e21dfdfdac731a594af3 (diff)
downloadandroid-nn-driver-08703acabe8b2efe2f096665352fc9b82f17bf72.tar.gz
Update Integrator guide in android nn driver
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I02d1ae8cc5b90ea4428af210f69d2358cdca3f6d
-rw-r--r--docs/IntegratorGuide.md16
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/IntegratorGuide.md b/docs/IntegratorGuide.md
index aca36aca..c06cfd77 100644
--- a/docs/IntegratorGuide.md
+++ b/docs/IntegratorGuide.md
@@ -5,10 +5,12 @@ This document describes how to integrate the Arm NN Android NNAPI driver into an
### Prerequisites
-1. Android source tree for Android P FSK-R3 or later, in the directory `<ANDROID_ROOT>`
-2. Android source tree for Android Q FSK-2 or later, in the directory `<ANDROID_ROOT>`
+1. Android source tree for Android P (we have tested against Android P version 9.0.0_r3) , in the directory `<ANDROID_ROOT>`
+2. Android source tree for Android Q (we have tested against Android Q version 10.0.0_r39), in the directory `<ANDROID_ROOT>`
3. Mali OpenCL driver integrated into the Android source tree
+Note: Arm NN Android NNAPI driver also supports pre-release version of Android R.
+
### Procedure
1. Place this source directory at `<ANDROID_ROOT>/vendor/arm/android-nn-driver`
@@ -85,9 +87,15 @@ Android Q and later has a different path:
### Testing
1. Run the ArmNN driver service executable in the background.
-The following examples assume that the 1.0 version of the driver is being used:
+Use the corresponding version of the driver for the Android version you are running.
+i.e
+android.hardware.neuralnetworks@1.1-service-armnn for Android P,
+android.hardware.neuralnetworks@1.2-service-armnn for Android Q and
+android.hardware.neuralnetworks@1.3-service-armnn for Android R
<pre>
-adb shell /system/vendor/bin/hw/android.hardware.neuralnetworks@1.0-service-armnn &
+It is also possible to use a specific backend by using the -c option.
+The following is an example of using the CpuAcc backend for Android Q:
+adb shell /system/vendor/bin/hw/android.hardware.neuralnetworks@1.2-service-armnn -c CpuAcc &
</pre>
2. Run some code that exercises the Android Neural Networks API, for example Android's
`NeuralNetworksTest` unit tests (note this is an optional component that must be built).