diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-06-09 10:08:27 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-06-15 17:57:39 +0000 |
commit | 08302c17cd57356b35d46e17dc8d8f76672da5cf (patch) | |
tree | 3fed9bea3586bc140cc953e935f6ed55e8692dac /src/runtime/IScheduler.cpp | |
parent | 450dfb1b4d719d60295bfae56f4c46dcaf044d72 (diff) | |
download | ComputeLibrary-08302c17cd57356b35d46e17dc8d8f76672da5cf.tar.gz |
Add CPU discovery capabilities.
Resolves: COMPMID-4500
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: I008c51934ef813fb1f489b531288c4419e701955
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5799
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/IScheduler.cpp')
-rw-r--r-- | src/runtime/IScheduler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime/IScheduler.cpp b/src/runtime/IScheduler.cpp index eae34b98eb..df04fed401 100644 --- a/src/runtime/IScheduler.cpp +++ b/src/runtime/IScheduler.cpp @@ -26,7 +26,7 @@ #include "arm_compute/core/CPP/ICPPKernel.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/Window.h" -#include "src/runtime/CPUUtils.h" +#include "src/common/cpuinfo/CpuInfo.h" #include "src/runtime/SchedulerUtils.h" namespace arm_compute @@ -34,9 +34,8 @@ namespace arm_compute IScheduler::IScheduler() : _cpu_info() { - utils::cpu::get_cpu_configuration(_cpu_info); // Work out the best possible number of execution threads - _num_threads_hint = utils::cpu::get_threads_hint(); + _num_threads_hint = cpuinfo::num_threads_hint(); } CPUInfo &IScheduler::cpu_info() |