From 5410db1be8c1b8f84c5062e646156e8bca42a4c4 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Thu, 27 Jan 2022 17:39:06 +0100 Subject: 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 --- applications/freertos/main.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'applications/freertos/main.cpp') diff --git a/applications/freertos/main.cpp b/applications/freertos/main.cpp index 0f4009e..81631ef 100644 --- a/applications/freertos/main.cpp +++ b/applications/freertos/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2021 Arm Limited. All rights reserved. + * Copyright (c) 2019-2022 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -99,17 +99,9 @@ struct xInferenceJob : public InferenceJob { const vector &_output, const vector &_expectedOutput, const size_t _numBytesToPrint, - const vector &_pmuEventConfig, - const uint32_t _pmuCycleCounterEnable, + void *_userArg, QueueHandle_t _queue) : - InferenceJob(_name, - _networkModel, - _input, - _output, - _expectedOutput, - _numBytesToPrint, - _pmuEventConfig, - _pmuCycleCounterEnable), + InferenceJob(_name, _networkModel, _input, _output, _expectedOutput, _numBytesToPrint, _userArg), responseQueue(_queue), status(false) {} }; -- cgit v1.2.1