diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2020-08-25 12:48:16 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2020-08-25 14:42:12 +0100 |
commit | d7377bbc4176c27aea26e2a8e93c45b45cab949c (patch) | |
tree | 5b98fbbea9acf270ea0160968802ddab5929cce6 /docs | |
parent | b218ebe8f43be4edf1891412c71c436c0105c10c (diff) | |
download | android-nn-driver-d7377bbc4176c27aea26e2a8e93c45b45cab949c.tar.gz |
Update Integrator guide in android nn driver
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I02d1ae8cc5b90ea4428af210f69d2358cdca3f6d
Diffstat (limited to 'docs')
-rw-r--r-- | docs/IntegratorGuide.md | 16 |
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). |