aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-08-29 15:55:01 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit6dba6d1cdd5bb52802e272965ef28787c88577e5 (patch)
tree4d4fca0f3a0563e6a0ff0f97357732e263d886e8 /src/core/CL
parent3e36369a5511c3028c30fc820752dc1248bddf5c (diff)
downloadComputeLibrary-6dba6d1cdd5bb52802e272965ef28787c88577e5.tar.gz
COMPMID-417: Fix invalid read in CL GEMM accumulate biases
Change-Id: Ie7786a29faa0d98d8ad65c2333d0d6a1665340bc Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85635 Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'src/core/CL')
-rw-r--r--src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp b/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp
index b8fb488fed..263cfab2dc 100644
--- a/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp
+++ b/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp
@@ -66,7 +66,7 @@ void CLGEMMMatrixAccumulateBiasesKernel::configure(ICLTensor *accum, const ICLTe
Window win = calculate_max_window(*_accum->info(), Steps(num_elems_processed_per_iteration));
- AccessWindowStatic biases_access(biases->info(), 0, 0, biases->info()->dimension(0), biases->info()->dimension(1));
+ AccessWindowStatic biases_access(biases->info(), 0, 0, ceil_to_multiple(biases->info()->dimension(0), num_elems_processed_per_iteration), biases->info()->dimension(1));
AccessWindowHorizontal accum_access(_accum->info(), 0, num_elems_processed_per_iteration);
update_window_and_padding(win, biases_access, accum_access);