From cad4e91027a29a62c210d422ce1c9130e46f2199 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Tue, 2 Jun 2020 12:07:43 +0100 Subject: IVGCVSW-4780 Add QoS to AndroidNNDriver * Add model priority to ArmnnPreparedModel_1_3 * Add RequestThread_1_3 to allow execution based on priority * Add RETIRE_RATE to Android.mk to be able to configure the retire rate Signed-off-by: Narumol Prangnawarat Change-Id: Ic5f4309249b744c2a8f625c986eede381a26028b --- RequestThread_1_3.hpp | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 RequestThread_1_3.hpp (limited to 'RequestThread_1_3.hpp') diff --git a/RequestThread_1_3.hpp b/RequestThread_1_3.hpp new file mode 100644 index 00000000..c8abc5e5 --- /dev/null +++ b/RequestThread_1_3.hpp @@ -0,0 +1,106 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include +#include +#include +#include + +#include "ArmnnDriver.hpp" +#include "ArmnnDriverImpl.hpp" + +#include +#include + +namespace armnn_driver +{ +using TimePoint = std::chrono::steady_clock::time_point; + +template