From 06e890b1475243145d64c7d56dfb4a262a17b09f Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 9 Jul 2020 18:38:34 +0100 Subject: COMPMID-3565: Exposes interface to enable thread binding Expose `set_num_threads_with_affinity` as an interface to the `IScheduler` to allow binding of threads to given logical cores. Signed-off-by: Georgios Pinitas Change-Id: I062db7caafb0101972ba45d31ee9e61b26800127 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3481 Comments-Addressed: Arm Jenkins Reviewed-by: Michalis Spyrou Tested-by: Arm Jenkins --- tests/framework/instruments/SchedulerTimer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/framework/instruments/SchedulerTimer.cpp b/tests/framework/instruments/SchedulerTimer.cpp index ab1dbbfb4c..75b128591a 100644 --- a/tests/framework/instruments/SchedulerTimer.cpp +++ b/tests/framework/instruments/SchedulerTimer.cpp @@ -63,6 +63,11 @@ public: _real_scheduler.set_num_threads(num_threads); } + void set_num_threads_with_affinity(unsigned int num_threads, BindFunc func) override + { + _real_scheduler.set_num_threads_with_affinity(num_threads, func); + } + unsigned int num_threads() const override { return _real_scheduler.num_threads(); -- cgit v1.2.1