aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/IScheduler.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-07-09 18:38:34 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-07-10 12:38:43 +0000
commit06e890b1475243145d64c7d56dfb4a262a17b09f (patch)
treede5c3da28868f0607faf2b1b4d3ab6167d99f776 /src/runtime/IScheduler.cpp
parentc8e6e2c48e558da0c0698428fe496491e18c022a (diff)
downloadComputeLibrary-06e890b1475243145d64c7d56dfb4a262a17b09f.tar.gz
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 <georgios.pinitas@arm.com> Change-Id: I062db7caafb0101972ba45d31ee9e61b26800127 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3481 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/IScheduler.cpp')
-rw-r--r--src/runtime/IScheduler.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/runtime/IScheduler.cpp b/src/runtime/IScheduler.cpp
index 921e436559..6b961d7dfc 100644
--- a/src/runtime/IScheduler.cpp
+++ b/src/runtime/IScheduler.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2018 Arm Limited.
+ * Copyright (c) 2016-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -41,6 +41,12 @@ CPUInfo &IScheduler::cpu_info()
return _cpu_info;
}
+void IScheduler::set_num_threads_with_affinity(unsigned int num_threads, BindFunc func)
+{
+ ARM_COMPUTE_UNUSED(num_threads, func);
+ ARM_COMPUTE_ERROR("Feature for affinity setting is not implemented");
+}
+
unsigned int IScheduler::num_threads_hint() const
{
return _num_threads_hint;