aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/direct_convolution.cl
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2021-04-13 15:53:20 +0100
committerGian Marco Iodice <gianmarco.iodice@arm.com>2021-04-13 16:02:42 +0000
commit598e3a8f32c68129958b9f6a40c684842f708f8a (patch)
tree9affb9fcf1bc2b58450596d37a1f30c227180e52 /src/core/CL/cl_kernels/direct_convolution.cl
parentf4edddb8968c6e424333a066cf6fbbf9c1426f13 (diff)
downloadComputeLibrary-598e3a8f32c68129958b9f6a40c684842f708f8a.tar.gz
Fix TILE initialization in direct convolution and winograd transforms
- The array initializer for the TILE object cannot always be utilized and so we do require to manually initialize the TILE with the LOOP_UNROLLING macro - Resolves COMPMID-4371 Change-Id: I2598354b9fae84c5e3bd11219fffdcdc297215e1 Signed-off-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5417 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/direct_convolution.cl')
-rw-r--r--src/core/CL/cl_kernels/direct_convolution.cl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/CL/cl_kernels/direct_convolution.cl b/src/core/CL/cl_kernels/direct_convolution.cl
index 220179effb..a9a997f9ac 100644
--- a/src/core/CL/cl_kernels/direct_convolution.cl
+++ b/src/core/CL/cl_kernels/direct_convolution.cl
@@ -150,7 +150,12 @@ __kernel void direct_convolution_nhwc(
}
// Initialize the accumulators
- TILE(ACC_DATA_TYPE, M0, N0, c) = { { { 0 } } };
+ TILE(ACC_DATA_TYPE, M0, N0, c);
+
+ LOOP_UNROLLING(int, i, 0, M0, 1)
+ {
+ c[i].v = 0;
+ }
for(int i = 0; i < (_IWEI_WIDTH * _IWEI_HEIGHT); ++i)
{