summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Butler2017-09-01 12:59:38 -0500
committerDavid Gross2017-09-01 13:07:56 -0500
commit0e2ac1bb885d7ba77e80a082526fd1b510190a72 (patch)
tree70cbf2c272e0d7d56b6ee1499fe7ed2f0b4cf3f4 /neuralnetworks/1.0/types.hal
parent5d143d2a0ff7c8d908aab13727b587003896d031 (diff)
downloadplatform-hardware-interfaces-0e2ac1bb885d7ba77e80a082526fd1b510190a72.tar.gz
platform-hardware-interfaces-0e2ac1bb885d7ba77e80a082526fd1b510190a72.tar.xz
platform-hardware-interfaces-0e2ac1bb885d7ba77e80a082526fd1b510190a72.zip
NNAPI Concurrent Query Management -- HAL and VTS update
The NNAPI requires requests on a model to be asynchronously processed. This CL implements a basic Event that can later be used to block the runtime thread until the asynchronous request has completed. Bug: 63905942 Test: VtsHalNeuralnetworksV1_0TargetTest (32-bit, 64-bit) with sample driver enabled by cherry-pick frameworks/ml/nn/runtime/test with and without sample driver enabled Change-Id: Ie27a574aaaac312e7cbb731750f9c06278357a1c
Diffstat (limited to 'neuralnetworks/1.0/types.hal')
-rw-r--r--neuralnetworks/1.0/types.hal5
1 files changed, 5 insertions, 0 deletions
diff --git a/neuralnetworks/1.0/types.hal b/neuralnetworks/1.0/types.hal
index 77f1021c..61af70b0 100644
--- a/neuralnetworks/1.0/types.hal
+++ b/neuralnetworks/1.0/types.hal
@@ -181,3 +181,8 @@ struct Request {
181 vec<InputOutputInfo> outputs; 181 vec<InputOutputInfo> outputs;
182 vec<memory> pools; 182 vec<memory> pools;
183}; 183};
184
185enum Status : uint32_t {
186 SUCCESS,
187 ERROR,
188};