From 14bd2cf5671031062deb7cb9f36b47bded77e294 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Thu, 14 Jun 2018 14:55:14 +0100 Subject: COMPMID-1246: (OCLgrind) Fix casting from __global pointer Change-Id: I0e437a43d3ae0fb7d0e425e8cb8bb56314604297 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/135659 Reviewed-by: Giorgio Arena Reviewed-by: Anthony Barbier Reviewed-by: Pablo Tello Tested-by: Jenkins --- src/core/CL/cl_kernels/im2col.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CL/cl_kernels/im2col.cl b/src/core/CL/cl_kernels/im2col.cl index f53ce21d05..c60c9a996c 100644 --- a/src/core/CL/cl_kernels/im2col.cl +++ b/src/core/CL/cl_kernels/im2col.cl @@ -123,7 +123,7 @@ __kernel void im2col1x1_stridex1_dchw( } #endif // defined(CONVOLVED_WIDTH) && defined(STRIDE_Y) && defined(KERNEL_DEPTH) -#define PTR_TO_VALUE(PTR, DATA_TYPE) *((DATA_TYPE *)(PTR)) +#define PTR_TO_VALUE(PTR, DATA_TYPE) *((__global DATA_TYPE *)(PTR)) #if defined(CONVOLVED_WIDTH) && defined(SRC_WIDTH) && defined(SRC_HEIGHT) && defined(STRIDE_X) && defined(STRIDE_Y) && defined(KERNEL_DEPTH) && defined(PAD_LEFT) && defined(PAD_RIGHT) && defined(PAD_TOP) && defined(PAD_BOTTOM) && defined(PAD_VALUE) -- cgit v1.2.1