diff options
author | Miao Wang <miaowang@google.com> | 2019-12-23 16:18:11 -0800 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2020-01-22 12:25:47 -0800 |
commit | 688992b3e241dd8936d63c6a21977bfc6b6f0773 (patch) | |
tree | e74dc38ae874002c519bd1f075c55cdc2af063d3 /nn/runtime/test/TestGenerated.cpp | |
parent | 991050faa2101656eca61c3acf0c98f8aa8cf106 (diff) | |
download | ml-688992b3e241dd8936d63c6a21977bfc6b6f0773.tar.gz |
Add tests for sync fence related API.
The following tests are added:
- basic validation tests
- generated tests for
ANeuralNetworksExecution_startComputeWithDependencies.
Bug: 142778241
Test: mm
Change-Id: I5591db4583e8b752868d06e16874780800d4410e
Diffstat (limited to 'nn/runtime/test/TestGenerated.cpp')
-rw-r--r-- | nn/runtime/test/TestGenerated.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nn/runtime/test/TestGenerated.cpp b/nn/runtime/test/TestGenerated.cpp index 93603a5eb..5842f0f36 100644 --- a/nn/runtime/test/TestGenerated.cpp +++ b/nn/runtime/test/TestGenerated.cpp @@ -488,6 +488,12 @@ TEST_P(GeneratedTests, Burst) { execute(testModel); Execution::setComputeMode(oldComputeMode); } + +TEST_P(GeneratedTests, Fenced) { + const auto oldComputeMode = Execution::setComputeMode(Execution::ComputeMode::FENCED); + execute(testModel); + Execution::setComputeMode(oldComputeMode); +} #else TEST_P(GeneratedTests, Test) { execute(testModel); |