aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtime/CPP/CPPScheduler.cpp1
-rw-r--r--src/runtime/IScheduler.cpp1
-rw-r--r--src/runtime/OMP/OMPScheduler.cpp1
3 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/CPP/CPPScheduler.cpp b/src/runtime/CPP/CPPScheduler.cpp
index de28b4f96e..68611f7eea 100644
--- a/src/runtime/CPP/CPPScheduler.cpp
+++ b/src/runtime/CPP/CPPScheduler.cpp
@@ -215,7 +215,6 @@ CPPScheduler::CPPScheduler()
: _num_threads(num_threads_hint()),
_threads(_num_threads - 1)
{
- get_cpu_configuration(_cpu_info);
}
void CPPScheduler::set_num_threads(unsigned int num_threads)
diff --git a/src/runtime/IScheduler.cpp b/src/runtime/IScheduler.cpp
index 5188dce4eb..b2edad0ca5 100644
--- a/src/runtime/IScheduler.cpp
+++ b/src/runtime/IScheduler.cpp
@@ -31,6 +31,7 @@ namespace arm_compute
IScheduler::IScheduler()
: _cpu_info()
{
+ get_cpu_configuration(_cpu_info);
// Work out the best possible number of execution threads
_num_threads_hint = get_threads_hint();
}
diff --git a/src/runtime/OMP/OMPScheduler.cpp b/src/runtime/OMP/OMPScheduler.cpp
index f4253c8848..77ee233cdd 100644
--- a/src/runtime/OMP/OMPScheduler.cpp
+++ b/src/runtime/OMP/OMPScheduler.cpp
@@ -42,7 +42,6 @@ OMPScheduler &OMPScheduler::get()
OMPScheduler::OMPScheduler() // NOLINT
: _num_threads(omp_get_max_threads())
{
- get_cpu_configuration(_cpu_info);
}
unsigned int OMPScheduler::num_threads() const