You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An acceptable workaround is to increase the timeout defined in AndroidTest.xml, in a similar way to https://android.googlesource.com/platform/test/vts-testcase/hal/+/f74899c6c09b52703e6db0323dffb4ae52539db4.
19
19
20
-
Problems seen when trying to build the android-nn-driver obtained from GitHub
Some users have encountered difficulties when attempting to build copies of the android-nn-driver obtained from GitHub. The build reports missing module source paths from armnn, clframework or flatbuffers-1.12.0.
24
-
These errors can look
25
-
like this:
26
-
27
-
'error: vendor/arm/android-nn-driver/Android.bp:45:1: variant "android_arm64_armv7": module "armnn-arm_compute" "module source path "vendor/arm/android-nn-driver/clframework/build/android-arm64v8a/src/core/CL" does not exist'
28
-
29
-
These errors are due to missing dependencies or incompatiblities between the android-nn-driver and armnn or clframework versions. The versions of android-nn-driver, armnn and clframework will have to match for them to work together. For example, the 22.02 version of android-nn-driver, clframework and armnn will work together but none of them will work with earlier or later versions of the others.
30
-
31
-
In order to ensure that the correct versions of flatbuffers, armnn and the clframework are obtained you can do the following:
32
-
33
-
1. Delete or move any flatbuffers, armnn or clframework directories from the android-nn-driver directory.
34
-
2. Run the setup.sh script in the android-nn-driver directory.
35
-
36
-
This will download the correct versions of flatbuffers, armnn and the clframework and the android-nn-driver should build
37
-
correctly. Alternatively you can go to the GitHub pages for android-nn-driver, armnn and computelibrary (clframework) and download versions with the same release tag.
@@ -55,7 +25,7 @@ There is a known issue in the Android NNAPI implementation of Instance Normaliza
55
25
VTS and CTS test failures
56
26
-------------------------
57
27
58
-
With the release of the Android 10 R2 CTS some errors and crashes were discovered in the 19.08 and 19.11 releases of armnn, the android-nn-driver and ComputeLibrary. 19.08.01 and 19.11.01 releases of armnn, the android-nn-driver and ComputeLibrary were prepared that fix all these issues on CpuAcc and GpuAcc. If using 19.08 or 19.11 we recommend that you upgrade to the latest releases.
28
+
With Android 10 R2 CTS some errors and crashes were discovered in the 19.08 and 19.11 releases of armnn, the android-nn-driver and ComputeLibrary. 19.08.01 and 19.11.01 releases of armnn, the android-nn-driver and ComputeLibrary were prepared that fix all these issues on CpuAcc and GpuAcc. If using 19.08 or 19.11 we recommend that you upgrade to the latest releases.
59
29
60
30
These fixes also required patches to be made to the Android Q test framework. You may encounter CTS and VTS test failures when attempting to build copies of the android-nn-driver against older versions of Android Q.
@@ -82,9 +69,8 @@ Android Q and later has a different path:
82
69
1. Run the Arm NN driver service executable in the background.
83
70
Use the corresponding version of the driver for the Android version you are running.
84
71
i.e
85
-
android.hardware.neuralnetworks@1.1-service-armnn for Android P,
86
72
android.hardware.neuralnetworks@1.2-service-armnn for Android Q and
87
-
android.hardware.neuralnetworks@1.3-service-armnn for Android Rand S
73
+
android.hardware.neuralnetworks@1.3-service-armnn for Android R, S and T
88
74
<pre>
89
75
It is also possible to use a specific backend by using the -c option.
90
76
The following is an example of using the CpuAcc backend for Android Q:
@@ -108,37 +94,14 @@ Rapid means that only 3 lws values should be tested for each kernel.
108
94
The recommended way of using it with Arm NN is to generate the tuning data during development of the Android image for a device, and use it in read-only mode during normal operation:
109
95
110
96
1. Run the Arm NN driver service executable in tuning mode. The path to the tuning data must be writable by the service.
111
-
The following examples assume that the 1.1 version of the driver is being used:
97
+
The following examples assume that the 1.2 version of the driver is being used:
2. Run a representative set of Android NNAPI testing loads. In this mode of operation, each NNAPI workload will be slow the first time it is executed, as the tuning parameters are being selected. Subsequent executions will use the tuning data which has been generated.
116
102
3. Stop the service.
117
103
4. Deploy the tuned parameters file to a location readable by the Arm NN driver service (for example, to a location within /vendor/etc).
118
104
5. During normal operation, pass the location of the tuning data to the driver service (this would normally be done by passing arguments via Android init in the service .rc definition):
The guide assumes you have the knowledge of how to build Android from source and where to find certain files in Android source tree. But if you are having any trouble:
128
-
129
-
1. The vendor manifest.xml file for a hikey960 is located at android/device/linaro/hikey/manifest.xml
130
-
2. The device.mk file for a hikey960 is located at device/linaro/hikey/hikey960/device-hikey960.mk
131
-
132
-
If you are running any tests you can also add them to the device-hikey960.mk file so that you have access to the test executable in your hikey. For example, if you are running VTS tests for Android R Hal version 1.3:
The guide was tested on Ubuntu 18.04. If you are using a docker you may see some build issues. Explicitly setting the USER variable may help resolve these when building Android inside docker.
0 commit comments