aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-06-17 17:23:22 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-06-17 17:29:03 +0000
commit705fd3d90dc58c84dd3ede99bafdd63a7eaf4bd5 (patch)
treee3e39a690e4b05638355b05b3807596fdb7246d4
parent45091736a9276919ececee0cba106228246341f8 (diff)
downloadComputeLibrary-705fd3d90dc58c84dd3ede99bafdd63a7eaf4bd5.tar.gz
COMPMID-2401: Fix CLGemmLowp macro expansion on no-dot platforms
Change-Id: If707865ff13c96627816863cd05e09aaef247bbe Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1361 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--src/core/CL/cl_kernels/gemmlowp.cl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/CL/cl_kernels/gemmlowp.cl b/src/core/CL/cl_kernels/gemmlowp.cl
index 54ffea184c..65c31efe2b 100644
--- a/src/core/CL/cl_kernels/gemmlowp.cl
+++ b/src/core/CL/cl_kernels/gemmlowp.cl
@@ -66,13 +66,13 @@
#else // defined(ARM_COMPUTE_OPENCL_DOT8_ENABLED) && defined(cl_arm_integer_dot_product_int8)
/** Specialized macros to perform the dot product instruction between two vectors of size K0 [1,16] without using the dot8 instruction. */
-#define ARM_DOT1(a, b, c) \
- ({ \
- c += (uint)a.s0 * b.s0; \
+#define ARM_DOT1(a, b, c) \
+ ({ \
+ c += (uint)a * b; \
})
#define ARM_DOT2(a, b, c) \
({ \
- ARM_DOT1(a, b, c); \
+ c += (uint)a.s0 * b.s0; \
c += (uint)a.s1 * b.s1; \
})
#define ARM_DOT3(a, b, c) \
@@ -134,7 +134,7 @@
ARM_DOT_K0(k0, (a), (b##F), (c.sF)); \
})
-/** Specialized macros to perform a a partial matrix multiplication with dimensions M0,N0,K0*/
+/** Specialized macros to perform a a partial matrix multiplication with dimensions M0,N0,K0 */
#define ARM_MM_K0XN0X1(n0, k0, a, b, c) \
({ \
ARM_DOT_K0XN0(n0, k0, (a##0), b, (c##0)); \