commit | 8f29728cedd04e9d29927e996e30eacf3cb34e7d | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Mar 18 22:44:37 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 18 22:44:37 2021 +0000 |
tree | 74b9b4fc7fa5081a35577e508058f05398787aa0 | |
parent | faf5896a8bdee160cd7e54ba744ecd17bb8ad475 [diff] | |
parent | 889f249f91433251ad0a9fa0b7bef05ba2c3d107 [diff] |
Merge "Document the default alignment and padding value." am: 40122ae511 am: 889f249f91 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1641200 Change-Id: Ia648bbb7dfd5080cfb45833d25040fc0eda6afa2
diff --git a/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl b/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl index 1b2378f..f656360 100644 --- a/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl +++ b/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl
@@ -35,6 +35,11 @@ * total size of the writable region of the output data, and padding specifies the extra bytes at * the end of the memory region that may be used by the device to access memory in chunks, for * efficiency, but must not be used to hold any output data. + * + * When used in RequestArgument, clients should prefer to align and pad the sub-region to + * 64 bytes when possible; this may allow the device to access the sub-region more efficiently. + * The sub-region is aligned to 64 bytes if the value of offset is a multiple of 64. + * The sub-region is padded to 64 bytes if the sum of length and padding is a multiple of 64. */ @VintfStability parcelable DataLocation {