diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2019-10-18 10:40:49 +0000 |
---|---|---|
committer | Manuel Bottini <manuel.bottini@arm.com> | 2019-10-18 12:17:26 +0000 |
commit | 662e5a45b05a4e3b00d5540dfc9f5ba8d769d627 (patch) | |
tree | b4a7fde2563254de1255aa1013985272a5444fa4 | |
parent | fae513c5585b9ba09c3aa8bfd4f7119208b7b5f9 (diff) | |
download | ComputeLibrary-662e5a45b05a4e3b00d5540dfc9f5ba8d769d627.tar.gz |
Revert "COMPMID-2742: [CL] ArgMinMax clCreateKernel error"
This reverts commit 76c996f3b240eb1f60a566e5b0a5e61fe363685a.
Change-Id: I7822e8f1c551bf042d59116af6debb9de9747b09
Reviewed-on: https://review.mlplatform.org/c/2121
Tested-by: 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 e19156d5fa..db034f0c3a 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 = (__global DATA_TYPE *) (src_ptr + src_offset_first_element_in_bytes + y_idx * src_step_y); + __global DATA_TYPE *src_in_row = 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 = (__global DATA_TYPE *)(src_ptr + src_offset_first_element_in_bytes + y_idx * src_step_y); + __global DATA_TYPE *src_in_row = 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( |