aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRuomei Yan <ruomei.yan@arm.com>2019-04-30 17:41:32 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-05-07 08:59:50 +0000
commit5e90935244f6448973f81146b78e20a065cb2df6 (patch)
tree812e364f77c09729e8a32d73788974f1481717c1 /README.md
parent9e80cd2195e64902951c3207b0d2aa82fe77c61f (diff)
downloadandroid-nn-driver-5e90935244f6448973f81146b78e20a065cb2df6.tar.gz
IVGCVSW-2773 Update the documentation
Change-Id: I630c8bfd325cfbb4ed1c0953ff1a37c9a188eabb Signed-off-by: Ruomei Yan <ruomei.yan@arm.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1da99904..dab362d2 100644
--- a/README.md
+++ b/README.md
@@ -75,12 +75,17 @@ check for messages in logcat with the `ArmnnDriver` tag.
### Using the GPU tuner
-The GPU tuner is a feature of the Compute Library that finds optimum values for GPU acceleration tuning parameters. The recommended way of using it with ArmNN 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:
+The GPU tuner is a feature of the Compute Library that finds optimum values for GPU acceleration tuning parameters.
+There are three levels of tuning: exhaustive, normal and rapid.
+Exhaustive means that all lws values are tested.
+Normal means that a reduced number of lws values are tested, but that generally is sufficient to have a performance close enough to the exhaustive approach.
+Rapid means that only 3 lws values should be tested for each kernel.
+The recommended way of using it with ArmNN 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:
1. Run the ArmNN driver service executable in tuning mode. The path to the tuning data must be writable by the service.
The following examples assume that the 1.0 version of the driver is being used:
<pre>
-adb shell /system/vendor/bin/hw/android.hardware.neuralnetworks@1.0-service-armnn --cl-tuned-parameters-file &lt;PATH_TO_TUNING_DATA&gt; --cl-tuned-parameters-mode UpdateTunedParameters &
+adb shell /system/vendor/bin/hw/android.hardware.neuralnetworks@1.0-service-armnn --cl-tuned-parameters-file &lt;PATH_TO_TUNING_DATA&gt; --cl-tuned-parameters-mode UpdateTunedParameters --cl-tuning-level exhaustive &
</pre>
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.
3. Stop the service.