From ef6ec50eff04adb3e5d60ba96a1a7d9118b10c5a Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 31 Jul 2020 11:38:36 +0100 Subject: COMPMID-3324: Fix oclgrind warnings Signed-off-by: Michalis Spyrou Change-Id: Ib14d158b9c5568981835312dcd9d5b9ca116649a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3637 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- src/core/CL/cl_kernels/batchnormalization_layer.cl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/CL/cl_kernels/batchnormalization_layer.cl') diff --git a/src/core/CL/cl_kernels/batchnormalization_layer.cl b/src/core/CL/cl_kernels/batchnormalization_layer.cl index 6f51db85e7..ad27aa386c 100644 --- a/src/core/CL/cl_kernels/batchnormalization_layer.cl +++ b/src/core/CL/cl_kernels/batchnormalization_layer.cl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Arm Limited. + * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -346,9 +346,9 @@ __kernel void fuse_batchnormalization_layer(TENSOR3D_DECLARATION(w), int c0 = z % DIM2; int c1 = z / DIM2; #else // ! defined(DIM2) - int c0 = 0; + int c0 = 0; #if defined(NHWC) - int c1 = x; + int c1 = x; #else // defined(NHWC) int c1 = z; #endif // defined(NHWC) @@ -386,7 +386,7 @@ __kernel void fuse_batchnormalization_layer(TENSOR3D_DECLARATION(w), // Compute bias #if !defined(DIM2) && defined(NHWC) if(z == 0 && y == 0) -#else !defined(DIM2) && defined(NHWC) +#else // !defined(DIM2) && defined(NHWC) if(x == 0 && y == 0 && c0 == 0) #endif // !defined(DIM2) && defined(NHWC) { -- cgit v1.2.1