aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/CPP
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-02-22 12:44:15 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:47:40 +0000
commitce876123707373f9a428f43df9d244f1de2c0cbf (patch)
tree69f1c060ff18f8ecac941136c377e1708a6ff6f0 /src/runtime/CPP
parent5b2191ed680fa90b90df13f23d7cc252adc4e382 (diff)
downloadComputeLibrary-ce876123707373f9a428f43df9d244f1de2c0cbf.tar.gz
COMPMID-765: Fixed number of threads hint for set_num_threads(0)
Change-Id: I8a71a68b597ecba03581aa79e8fd481874d7e180 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121796 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/CPP')
-rw-r--r--src/runtime/CPP/CPPScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/CPP/CPPScheduler.cpp b/src/runtime/CPP/CPPScheduler.cpp
index 4e4dd87ed7..168ed6e30f 100644
--- a/src/runtime/CPP/CPPScheduler.cpp
+++ b/src/runtime/CPP/CPPScheduler.cpp
@@ -163,7 +163,7 @@ CPPScheduler::CPPScheduler()
void CPPScheduler::set_num_threads(unsigned int num_threads)
{
- _num_threads = num_threads == 0 ? std::thread::hardware_concurrency() : num_threads;
+ _num_threads = num_threads == 0 ? num_threads_hint() : num_threads;
_threads.resize(_num_threads - 1);
}