summaryrefslogtreecommitdiff
path: root/nn/runtime
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2020-06-15 18:14:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-15 18:14:39 +0000
commite19d742a8f5809a542a096579d0e4830b6e356fe (patch)
tree88c1c2aab87d56b4ff22ae8ad790a0227a97cc58 /nn/runtime
parent73ef4105a24f21ec8d6b1bbe4253552e3ba5db26 (diff)
parent77d9d6b9921bea2918403751820638c19ff0bd37 (diff)
downloadml-e19d742a8f5809a542a096579d0e4830b6e356fe.tar.gz
Merge "Change TEST_MAPPING configuration of NeuralNetworksTest_static" into rvc-dev
Diffstat (limited to 'nn/runtime')
-rw-r--r--nn/runtime/test/TestMain.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/nn/runtime/test/TestMain.cpp b/nn/runtime/test/TestMain.cpp
index a4fefae70..f89c7adbc 100644
--- a/nn/runtime/test/TestMain.cpp
+++ b/nn/runtime/test/TestMain.cpp
@@ -56,6 +56,11 @@ static uint64_t allowedPasses = ~uint64_t(0);
// true, and if we are asked to set it to false, we return 0 ("success") without
// running tests.
static int test(bool useCpuOnly, Execution::ComputeMode computeMode, bool allowSyncExecHal = true) {
+ // NOTE: The test mapping configuration (frameworks/ml/nn/TEST_MAPPING) uses
+ // the value of 1024 to only run pass 10 of the test, corresponding to
+ // "useCpuOnly = 0, computeMode = ComputeMode::ASYNC, allowSyncExecHal = 1".
+ // If you change the bit representation here, also make the corresponding
+ // change to the TEST_MAPPING file to run the equivalent pass of the test.
uint32_t passIndex =
(useCpuOnly << 0) + (static_cast<uint32_t>(computeMode) << 1) + (allowSyncExecHal << 3);