aboutsummaryrefslogtreecommitdiff
path: root/tests/framework
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-05-25 13:32:10 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:52:54 +0000
commit52ecb06b5627902a2f4514fba977e98454af4872 (patch)
tree7e66afcd6a81d2a5d7f886d5d2d0f4e27cc6c4d1 /tests/framework
parentdf473eab0ab8a52e6b58e0f6442b39ba4c1d68ea (diff)
downloadComputeLibrary-52ecb06b5627902a2f4514fba977e98454af4872.tar.gz
COMPMID-1180: Add support for bucket multi-threading (Part 1)
- Add an entry point to allow the user to parallelise an arbitrary queue of workloads (Will be used to interleave GEMM / BufferManager) - Added a ThreadFeeder which acts as a thread-safe work distributor Change-Id: I3a84fb7446c453cfcd337e21338c2ccf9f29f7b3 Note: This patch doesn't introduce any change in the default strategy, therefore it shouldn't have any impact on the performance Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/133058 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/framework')
-rw-r--r--tests/framework/instruments/SchedulerTimer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/framework/instruments/SchedulerTimer.cpp b/tests/framework/instruments/SchedulerTimer.cpp
index 1b37b189dd..49d94d76eb 100644
--- a/tests/framework/instruments/SchedulerTimer.cpp
+++ b/tests/framework/instruments/SchedulerTimer.cpp
@@ -76,6 +76,19 @@ public:
_kernels.push_back(std::move(info));
}
+ void run_workloads(std::vector<Workload> &workloads) override
+ {
+ _timer.start();
+ _real_scheduler.run_workloads(workloads);
+ _timer.stop();
+
+ SchedulerTimer::kernel_info info;
+ info.name = "Unknown";
+ info.prefix = _prefix;
+ info.measurements = _timer.measurements();
+ _kernels.push_back(std::move(info));
+ }
+
private:
std::list<SchedulerTimer::kernel_info> &_kernels;
IScheduler &_real_scheduler;