aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NEHistogramKernel.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-09-07 09:48:04 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitc186b574e52b81c75e551cee46a6c4cc7d500c90 (patch)
tree682add7d1b705eb6d0b79b1f9a7a039dbaa4287b /src/core/NEON/kernels/NEHistogramKernel.cpp
parent3e05e4e85912e745b8555102e1bcef13478d2ceb (diff)
downloadComputeLibrary-c186b574e52b81c75e551cee46a6c4cc7d500c90.tar.gz
COMPMID-481: Add thread info parameter
Change-Id: Iebb50a88d017445b6b37a86563ebd4abd86c5cf5 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86788 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NEHistogramKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NEHistogramKernel.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/NEON/kernels/NEHistogramKernel.cpp b/src/core/NEON/kernels/NEHistogramKernel.cpp
index 2018651083..6e402ae604 100644
--- a/src/core/NEON/kernels/NEHistogramKernel.cpp
+++ b/src/core/NEON/kernels/NEHistogramKernel.cpp
@@ -66,7 +66,7 @@ NEHistogramKernel::NEHistogramKernel()
{
}
-void NEHistogramKernel::histogram_U8(Window win)
+void NEHistogramKernel::histogram_U8(Window win, const ThreadInfo &info)
{
ARM_COMPUTE_ERROR_ON(_output->buffer() == nullptr);
@@ -74,7 +74,7 @@ void NEHistogramKernel::histogram_U8(Window win)
const int32_t offset = _output->offset();
const uint32_t offrange = offset + _output->range();
const uint32_t *const w_lut = _window_lut;
- uint32_t *const local_hist = _local_hist + win.thread_id() * bins;
+ uint32_t *const local_hist = _local_hist + info.thread_id * bins;
// Clear local_histogram
std::fill_n(local_hist, bins, 0);
@@ -129,8 +129,9 @@ void NEHistogramKernel::histogram_U8(Window win)
merge_histogram(_output->buffer(), local_hist, bins);
}
-void NEHistogramKernel::histogram_fixed_U8(Window win)
+void NEHistogramKernel::histogram_fixed_U8(Window win, const ThreadInfo &info)
{
+ ARM_COMPUTE_UNUSED(info);
ARM_COMPUTE_ERROR_ON(_output->buffer() == nullptr);
std::array<uint32_t, _max_range_size> local_hist{ { 0 } };
@@ -242,11 +243,11 @@ void NEHistogramKernel::configure(const IImage *input, IDistribution1D *output)
INEKernel::configure(win);
}
-void NEHistogramKernel::run(const Window &window)
+void NEHistogramKernel::run(const Window &window, const ThreadInfo &info)
{
ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(INEKernel::window(), window);
ARM_COMPUTE_ERROR_ON(_func == nullptr);
- (this->*_func)(window);
+ (this->*_func)(window, info);
}