diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-01-17 16:36:46 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-01-20 16:38:51 +0000 |
commit | 58307943d9a66552f8a425683061fd1aa2b599c4 (patch) | |
tree | bef6d8cce8fc8d3d57c043daf6ece9cfb45f4cff /src/core/CL/cl_kernels/elementwise_unary.cl | |
parent | 0cb3da671b652641deff909a21f6e45a550452f1 (diff) | |
download | ComputeLibrary-58307943d9a66552f8a425683061fd1aa2b599c4.tar.gz |
COMPMID-2819 Unary Operation VTS/CTS failures on CL
Change-Id: I49231bb66101244d05d6eb35bc644bcc8693aa34
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2602
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/elementwise_unary.cl')
-rw-r--r-- | src/core/CL/cl_kernels/elementwise_unary.cl | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/core/CL/cl_kernels/elementwise_unary.cl b/src/core/CL/cl_kernels/elementwise_unary.cl index b496fcf562..e8a3fb778a 100644 --- a/src/core/CL/cl_kernels/elementwise_unary.cl +++ b/src/core/CL/cl_kernels/elementwise_unary.cl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -48,20 +48,28 @@ /** Applies element wise unary operator in a tensor. * * @param[in] in_ptr Pointer to the source image. Supported data types: F16/32. - * @param[in] in_stride_x Stride of the source image in X dimension (in bytes) - * @param[in] in_step_x in_stride_x * number of elements along X processed per work item (in bytes) + * @param[in] in_stride_x Stride of the source tensor in X dimension (in bytes) + * @param[in] in_step_x in_stride_x * number of elements along X processed per workitem(in bytes) + * @param[in] in_stride_y Stride of the source tensor in Y dimension (in bytes) + * @param[in] in_step_y in_stride_y * number of elements along Y processed per workitem(in bytes) + * @param[in] in_stride_z Stride of the source tensor in Z dimension (in bytes) + * @param[in] in_step_z in_stride_z * number of elements along Z processed per workitem(in bytes) * @param[in] in_offset_first_element_in_bytes Offset of the first element in the source image * @param[out] out_ptr Pointer to the destination image. Supported data types: F16/32. * @param[in] out_stride_x Stride of the destination image in X dimension (in bytes) - * @param[in] out_step_y out_stride_y * number of elements along Y processed per work item (in bytes) + * @param[in] out_step_x out_stride_x * number of elements along X processed per workitem(in bytes) + * @param[in] out_step_y Stride of the destination tensor in Y dimension (in bytes) + * @param[in] out_step_y out_stride_y * number of elements along Y processed per workitem(in bytes) + * @param[in] out_stride_z Stride of the destination tensor in Z dimension (in bytes) + * @param[in] out_step_z out_stride_z * number of elements along Z processed per workitem(in bytes) * @param[in] out_offset_first_element_in_bytes Offset of the first element in the destination image */ __kernel void elementwise_unary( - VECTOR_DECLARATION(in), - VECTOR_DECLARATION(out)) + TENSOR3D_DECLARATION(in), + TENSOR3D_DECLARATION(out)) { - Vector in = CONVERT_TO_VECTOR_STRUCT(in); - Vector out = CONVERT_TO_VECTOR_STRUCT(out); + Tensor3D in = CONVERT_TO_TENSOR3D_STRUCT(in); + Tensor3D out = CONVERT_TO_TENSOR3D_STRUCT(out); #if defined(VEC_SIZE) && defined(LAST_ACCESSED_X) // Check if access on width gets out of bounds |