diff options
author | Miao Wang <miaowang@google.com> | 2019-12-20 16:07:39 -0800 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2020-01-22 12:22:14 -0800 |
commit | 991050faa2101656eca61c3acf0c98f8aa8cf106 (patch) | |
tree | 43bcd3964df6b0c1bb5f4b671b9a5a83a7f34fe3 /nn/runtime/test/TestExecution.cpp | |
parent | 2052673f482edf7fb144cc548f86842bc06cffef (diff) | |
download | ml-991050faa2101656eca61c3acf0c98f8aa8cf106.tar.gz |
Sync fence support in NNAPI
The following APIs are added to NNAPI:
- ANeuralNetworksEvent_createFromSyncFenceFd
- ANeuralNetworksEvent_getSyncFenceFd
- ANeuralNetworksExecution_startComputeWithDependencies
Bug: 142778241
Test: mm
Change-Id: I7bba64982c0d06e1224f5a71ee788a5044aac36a
Diffstat (limited to 'nn/runtime/test/TestExecution.cpp')
-rw-r--r-- | nn/runtime/test/TestExecution.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nn/runtime/test/TestExecution.cpp b/nn/runtime/test/TestExecution.cpp index fb4e9d9e8..43a43930a 100644 --- a/nn/runtime/test/TestExecution.cpp +++ b/nn/runtime/test/TestExecution.cpp @@ -161,6 +161,11 @@ class TestPreparedModelLatest : public IPreparedModel { return Void(); } } + Return<void> executeFenced(const V1_3::Request&, const hidl_vec<hidl_handle>&, MeasureTiming, + executeFenced_cb cb) override { + cb(ErrorStatus::DEVICE_UNAVAILABLE, hidl_handle(nullptr), nullptr); + return Void(); + } private: const sp<V1_0::IPreparedModel> mPreparedModelV1_0; |