From 08703acabe8b2efe2f096665352fc9b82f17bf72 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 25 Aug 2020 12:48:16 +0100 Subject: Update Integrator guide in android nn driver Signed-off-by: Nikhil Raj Change-Id: I02d1ae8cc5b90ea4428af210f69d2358cdca3f6d --- docs/IntegratorGuide.md | 16 ++++++++++++---- 1 file 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 `` -2. Android source tree for Android Q FSK-2 or later, in the directory `` +1. Android source tree for Android P (we have tested against Android P version 9.0.0_r3) , in the directory `` +2. Android source tree for Android Q (we have tested against Android Q version 10.0.0_r39), in the directory `` 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 `/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
-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 &
 
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). -- cgit v1.2.1