diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-05-21 15:02:36 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-06-16 11:42:09 +0000 |
commit | bcd2352d7fd99a2f6aab220fa0c3b3f3119a1a4c (patch) | |
tree | a3e1880071bca828b1c58be71805ccce4b205e53 /tests/framework/instruments | |
parent | eae658453199d67a41deccbeb78e55b8eea9e966 (diff) | |
download | ComputeLibrary-bcd2352d7fd99a2f6aab220fa0c3b3f3119a1a4c.tar.gz |
COMPMID-3391: Implement Async interfaces
Change-Id: I8168cea5056ff48a0253ebb8c88ea549a3ea69a2
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3335
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/framework/instruments')
-rw-r--r-- | tests/framework/instruments/SchedulerTimer.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/framework/instruments/SchedulerTimer.cpp b/tests/framework/instruments/SchedulerTimer.cpp index 9e8bba28e8..58e1b56904 100644 --- a/tests/framework/instruments/SchedulerTimer.cpp +++ b/tests/framework/instruments/SchedulerTimer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 ARM Limited. + * Copyright (c) 2017-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -86,6 +86,19 @@ public: _kernels.push_back(std::move(info)); } + void schedule_op(ICPPKernel *kernel, const Hints &hints, std::vector<InputOperatorTensors *> &inputs, std::vector<OutputOperatorTensors *> &outputs) override + { + _timer.start(); + _real_scheduler.schedule_op(kernel, hints, inputs, outputs); + _timer.stop(); + + typename SchedulerClock<output_timestamps>::kernel_info info; + info.name = kernel->name(); + info.prefix = _prefix; + info.measurements = _timer.measurements(); + _kernels.push_back(std::move(info)); + } + void run_tagged_workloads(std::vector<Workload> &workloads, const char *tag) override { _timer.start(); |