• Home
  • Raw
  • Download

Lines Matching +full:android +full:- +full:arm

4 This document describes how to integrate the Arm NN Android NNAPI driver into an Android source tre…
8 1. Android source tree for Android Q (we have tested against Android Q version 10.0.0_r39), in the …
9 2. Android source tree for Android R (we have tested against Android R version 11.0.0_r3), in the d…
10 3. Android source tree for Android S (we have tested against Android S version 12.0.0_r1), in the d…
11 4. Android source tree for Android T (we have tested against Android T pre-release tag - TP1A.22062…
12 5. Mali OpenCL driver integrated into the Android source tree
16 1. Place this source directory at `<ANDROID_ROOT>/vendor/arm/android-nn-driver`
18 3. Update the Android build environment to add the Arm NN driver. This ensures that the driver serv…
19 is built and copied to the `system/vendor/bin/hw` directory in the Android image.
21 within the device-specific makefile that is located in the `<ANDROID_ROOT>/device/<manufacturer>/<p…
24 `Android.mk` contains the module definition of all versions (1.1, 1.2 and 1.3) of the Arm NN driver.
26 For Android Q, a new version of the NN API is available (1.2),
29 PRODUCT_PACKAGES += android.hardware.neuralnetworks@1.2-service-armnn
32 For Android R, S and T, new version of the NN API is available (1.3),
35 PRODUCT_PACKAGES += android.hardware.neuralnetworks@1.3-service-armnn
44 For all Android versions the vendor manifest.xml requires the Neural Network HAL information.
45 For Android Q use HAL version 1.2 as below. For later Android versions substitute 1.3 where necessa…
48 <name>android.hardware.neuralnetworks</name>
59 4. Build Android as normal (https://source.android.com/setup/build/building)
60 5. To confirm that the Arm NN driver has been built, check for the driver service executable at
62 Android Q
69 1. Run the Arm NN driver service executable in the background.
70 Use the corresponding version of the driver for the Android version you are running.
72 android.hardware.neuralnetworks@1.2-service-armnn for Android Q and
73 android.hardware.neuralnetworks@1.3-service-armnn for Android R, S and T
75 It is also possible to use a specific backend by using the -c option.
76 The following is an example of using the CpuAcc backend for Android Q:
77 adb shell /system/vendor/bin/hw/android.hardware.neuralnetworks@1.2-service-armnn -c CpuAcc &
79 2. Run some code that exercises the Android Neural Networks API, for example Android's
84 3. To confirm that the Arm NN driver is being used to service the Android Neural Networks API reque…
85 …tag. Please note that you need to add ARMNN_DRIVER_DEBUG := 1 to the 'device-vendor.mk' for the lo…
94 …way of using it with Arm NN is to generate the tuning data during development of the Android image…
96 1. Run the Arm NN driver service executable in tuning mode. The path to the tuning data must be wri…
99android.hardware.neuralnetworks@1.2-service-armnn --cl-tuned-parameters-file &lt;PATH_TO_TUNING_DA…
101 2. Run a representative set of Android NNAPI testing loads. In this mode of operation, each NNAPI w…
103 4. Deploy the tuned parameters file to a location readable by the Arm NN driver service (for exampl…
104 …the driver service (this would normally be done by passing arguments via Android init in the servi…
106 adb shell /system/vendor/bin/hw/android.hardware.neuralnetworks@1.2-service-armnn --cl-tuned-parame…