diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2019-10-11 13:52:07 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-14 10:47:34 +0000 |
commit | 76c996f3b240eb1f60a566e5b0a5e61fe363685a (patch) | |
tree | 166e3ff23a3d6625e474c271e0ce0d9814d9625b | |
parent | ee0f6cc4aaf7812a35faa7c9419381a76046f684 (diff) | |
download | ComputeLibrary-76c996f3b240eb1f60a566e5b0a5e61fe363685a.tar.gz |
COMPMID-2742: [CL] ArgMinMax clCreateKernel error
Change-Id: I9e8b91d12fd94843bf67c929abd192ed5c25ca62
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2077
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
-rw-r--r-- | src/core/CL/cl_kernels/reduction_operation.cl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/CL/cl_kernels/reduction_operation.cl b/src/core/CL/cl_kernels/reduction_operation.cl index db034f0c3a..e19156d5fa 100644 --- a/src/core/CL/cl_kernels/reduction_operation.cl +++ b/src/core/CL/cl_kernels/reduction_operation.cl @@ -252,7 +252,7 @@ __kernel void reduction_operation_x( #if defined(PROD) local_results[lid] *= local_results[lid + i]; #elif defined(ARG_MAX) - __global DATA_TYPE *src_in_row = src_ptr + src_offset_first_element_in_bytes + y_idx * src_step_y; + __global DATA_TYPE *src_in_row = (__global DATA_TYPE *) (src_ptr + src_offset_first_element_in_bytes + y_idx * src_step_y); DATA_TYPE tmp0 = *(src_in_row + local_results[lid]); DATA_TYPE tmp1 = *(src_in_row + local_results[lid + i]); local_results[lid] = select( @@ -261,7 +261,7 @@ __kernel void reduction_operation_x( ((tmp0 == tmp1) && (local_results[lid + i] < local_results[lid])) || (tmp0 < tmp1)); #elif defined(ARG_MIN) - __global DATA_TYPE *src_in_row = src_ptr + src_offset_first_element_in_bytes + y_idx * src_step_y; + __global DATA_TYPE *src_in_row = (__global DATA_TYPE *)(src_ptr + src_offset_first_element_in_bytes + y_idx * src_step_y); DATA_TYPE tmp0 = *(src_in_row + local_results[lid]); DATA_TYPE tmp1 = *(src_in_row + local_results[lid + i]); local_results[lid] = select( |