diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-01-27 17:39:06 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-01-31 16:58:33 +0100 |
commit | 5410db1be8c1b8f84c5062e646156e8bca42a4c4 (patch) | |
tree | f782ab4ee6bbc9e15643733ad937a564def8cbe7 /applications/driver_unit_tests | |
parent | 6e9fdc0565ff07fce1fb5efc18bb7d5dbe3da489 (diff) | |
download | ethos-u-core-platform-5410db1be8c1b8f84c5062e646156e8bca42a4c4.tar.gz |
PMU multi NPU support
Update sample applications to use an external context for the PMU
configuration. The external context stored in the InferenceJob will
be set as TFLu external context and will be returned in the
ethosu_inference_begin() and ethosu_inference_end() callbacks.
Change-Id: Ief1f0943e322c2b50e8b964017af59161f67de6b
Diffstat (limited to 'applications/driver_unit_tests')
-rw-r--r-- | applications/driver_unit_tests/command_stream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/driver_unit_tests/command_stream.cpp b/applications/driver_unit_tests/command_stream.cpp index 5b0de72..76dba6f 100644 --- a/applications/driver_unit_tests/command_stream.cpp +++ b/applications/driver_unit_tests/command_stream.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Arm Limited. All rights reserved. + * Copyright (c) 2021-2022 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -121,8 +121,8 @@ int CommandStream::run(size_t repeat) { } while (repeat-- > 0) { - int error = ethosu_invoke( - drv, commandStream.data, commandStream.size, baseAddress, baseAddressSize, ETHOSU_BASEP_INDEXES); + int error = ethosu_invoke_v3( + drv, commandStream.data, commandStream.size, baseAddress, baseAddressSize, ETHOSU_BASEP_INDEXES, nullptr); if (error != 0) { printf("Inference failed. error=%d\n", error); |