summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nn/runtime/test/TestMain.cpp')
-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);