aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-07-03 17:39:37 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commitac69aa137e360340fe9f148f019d93af6c3d8336 (patch)
tree88c2fb6ea8693c69b19d3b7b38fe26cd916303c8
parent05da6dd102c988081c7d5eccb227f559f740ceef (diff)
downloadComputeLibrary-ac69aa137e360340fe9f148f019d93af6c3d8336.tar.gz
COMPMID-418 Add check and fix comments after preprocessor conditions
Change-Id: I1353fd652ee180e3931e58b4ce13d651a48c7e2c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79567 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
-rw-r--r--arm_compute/core/CL/CLHelpers.h2
-rw-r--r--arm_compute/core/NEON/kernels/NEAccumulateKernel.h4
-rw-r--r--arm_compute/core/NEON/kernels/NEBox3x3Kernel.h4
-rw-r--r--arm_compute/core/NEON/kernels/NEFastCornersKernel.h2
-rw-r--r--arm_compute/core/NEON/kernels/NEFillArrayKernel.h2
-rw-r--r--arm_compute/core/NEON/kernels/NEHarrisCornersKernel.h4
-rw-r--r--arm_compute/core/NEON/kernels/NEMagnitudePhaseKernel.h4
-rw-r--r--arm_compute/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.h4
-rwxr-xr-xscripts/check_bad_style.sh17
-rw-r--r--src/core/CL/CLKernelLibrary.cpp6
-rw-r--r--src/core/CL/cl_kernels/activation_layer.cl36
-rw-r--r--src/core/CL/cl_kernels/arithmetic_op.cl4
-rw-r--r--src/core/CL/cl_kernels/channel_combine.cl12
-rw-r--r--src/core/CL/cl_kernels/channel_extract.cl46
-rw-r--r--src/core/CL/cl_kernels/convolution3x3.cl4
-rw-r--r--src/core/CL/cl_kernels/convolution5x5.cl6
-rw-r--r--src/core/CL/cl_kernels/convolution7x7.cl6
-rw-r--r--src/core/CL/cl_kernels/convolution9x9.cl6
-rw-r--r--src/core/CL/cl_kernels/convolution_layer.cl24
-rw-r--r--src/core/CL/cl_kernels/convolution_rectangle.cl16
-rw-r--r--src/core/CL/cl_kernels/depth_convert.cl4
-rw-r--r--src/core/CL/cl_kernels/derivative.cl12
-rw-r--r--src/core/CL/cl_kernels/fast_corners.cl11
-rw-r--r--src/core/CL/cl_kernels/gemm.cl36
-rw-r--r--src/core/CL/cl_kernels/hog.cl29
-rw-r--r--src/core/CL/cl_kernels/magnitude_phase.cl16
-rw-r--r--src/core/CL/cl_kernels/mean_stddev.cl20
-rw-r--r--src/core/CL/cl_kernels/minmaxloc.cl26
-rw-r--r--src/core/CL/cl_kernels/non_linear_filter3x3.cl42
-rw-r--r--src/core/CL/cl_kernels/non_linear_filter5x5.cl48
-rw-r--r--src/core/CL/cl_kernels/pixelwise_mul_float.cl10
-rw-r--r--src/core/CL/cl_kernels/pixelwise_mul_int.cl4
-rw-r--r--src/core/CL/cl_kernels/pooling_layer.cl22
-rw-r--r--src/core/CL/cl_kernels/scharr_filter.cl26
-rw-r--r--src/core/CL/cl_kernels/sobel_filter.cl74
-rw-r--r--src/core/CL/cl_kernels/softmax_layer.cl20
-rw-r--r--src/core/CL/cl_kernels/transpose.cl6
-rw-r--r--src/core/NEON/kernels/NEAccumulateKernel.cpp2
-rw-r--r--src/core/NEON/kernels/NEBox3x3Kernel.cpp2
-rw-r--r--src/core/NEON/kernels/NECannyEdgeKernel.cpp2
-rw-r--r--src/core/NEON/kernels/NEGEMMMatrixAdditionKernel.cpp4
-rw-r--r--src/core/NEON/kernels/NEGEMMMatrixMultiplyKernel.cpp18
-rw-r--r--src/core/NEON/kernels/NEHarrisCornersKernel.cpp2
-rw-r--r--src/core/NEON/kernels/NEIm2ColKernel.cpp4
-rw-r--r--src/core/NEON/kernels/NELocallyConnectedMatrixMultiplyKernel.cpp4
-rw-r--r--src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp2
-rw-r--r--src/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.cpp2
-rw-r--r--src/runtime/NEON/functions/NEGEMM.cpp2
-rw-r--r--src/runtime/Scheduler.cpp24
-rw-r--r--tests/CL/CLAccessor.h2
-rw-r--r--tests/Globals.h2
-rw-r--r--tests/IAccessor.h2
-rw-r--r--tests/NEON/Helper.h2
-rw-r--r--tests/NEON/NEAccessor.h2
-rw-r--r--tests/PaddingCalculator.h2
-rw-r--r--tests/ProgramOptions.h2
-rw-r--r--tests/RawTensor.h2
-rw-r--r--tests/TensorCache.h2
-rw-r--r--tests/TensorLibrary.cpp14
-rw-r--r--tests/TensorLibrary.h12
-rw-r--r--tests/TypePrinter.h2
-rw-r--r--tests/TypeReader.h2
-rw-r--r--tests/Types.h2
-rw-r--r--tests/UserConfiguration.h2
-rw-r--r--tests/Utils.h8
-rw-r--r--tests/benchmark/Datasets.h2
-rw-r--r--tests/benchmark/Instrument.h2
-rw-r--r--tests/benchmark/PMUCounter.h2
-rw-r--r--tests/benchmark/PerformanceProgramOptions.h2
-rw-r--r--tests/benchmark/PerformanceUserConfiguration.h2
-rw-r--r--tests/benchmark/Profiler.h2
-rw-r--r--tests/benchmark/WallClockTimer.h2
-rw-r--r--tests/benchmark/main.cpp4
-rw-r--r--tests/benchmark/system_tests/common/LeNet5.h2
-rw-r--r--tests/dataset/ActivationFunctionDataset.h4
-rw-r--r--tests/dataset/ActivationLayerDataset.h2
-rw-r--r--tests/dataset/BatchNormalizationLayerDataset.h2
-rw-r--r--tests/dataset/BorderModeDataset.h8
-rw-r--r--tests/dataset/ConvertPolicyDataset.h8
-rw-r--r--tests/dataset/ConvolutionLayerDataset.h4
-rw-r--r--tests/dataset/DataTypeDatasets.h8
-rw-r--r--tests/dataset/FullyConnectedLayerDataset.h4
-rw-r--r--tests/dataset/GEMMDataset.h2
-rw-r--r--tests/dataset/GenericDataset.h8
-rw-r--r--tests/dataset/ImageDatasets.h10
-rw-r--r--tests/dataset/InterpolationPolicyDataset.h8
-rw-r--r--tests/dataset/MatrixPatternDataset.h8
-rw-r--r--tests/dataset/NonLinearFilterFunctionDataset.h8
-rw-r--r--tests/dataset/NormalizationLayerDataset.h4
-rw-r--r--tests/dataset/NormalizationTypeDataset.h8
-rw-r--r--tests/dataset/PoolingLayerDataset.h2
-rw-r--r--tests/dataset/PoolingTypesDataset.h2
-rw-r--r--tests/dataset/RoundingPolicyDataset.h8
-rw-r--r--tests/dataset/ShapeDatasets.h8
-rw-r--r--tests/dataset/ThresholdDataset.h4
-rw-r--r--tests/validation/CL/ActivationLayer.cpp2
-rw-r--r--tests/validation/CL/BitwiseAnd.cpp2
-rw-r--r--tests/validation/CL/Box3x3.cpp2
-rw-r--r--tests/validation/CL/CLFixture.h2
-rw-r--r--tests/validation/CL/ConvolutionLayer.cpp4
-rw-r--r--tests/validation/CL/DepthConvert.cpp2
-rw-r--r--tests/validation/CL/FillBorder.cpp2
-rw-r--r--tests/validation/CL/FixedPoint/FixedPoint_QS8.cpp6
-rw-r--r--tests/validation/CL/GEMM.cpp2
-rw-r--r--tests/validation/CL/Gaussian3x3.cpp2
-rw-r--r--tests/validation/CL/Gaussian5x5.cpp2
-rw-r--r--tests/validation/CL/IntegralImage.cpp2
-rw-r--r--tests/validation/CL/NonLinearFilter.cpp2
-rw-r--r--tests/validation/CL/PoolingLayer.cpp2
-rw-r--r--tests/validation/CL/Sobel3x3.cpp2
-rw-r--r--tests/validation/CL/Sobel5x5.cpp2
-rw-r--r--tests/validation/CL/SoftmaxLayer.cpp2
-rw-r--r--tests/validation/CL/Threshold.cpp2
-rw-r--r--tests/validation/Datasets.h2
-rw-r--r--tests/validation/NEON/AbsoluteDifference.cpp2
-rw-r--r--tests/validation/NEON/Accumulate.cpp2
-rw-r--r--tests/validation/NEON/AccumulateSquared.cpp2
-rw-r--r--tests/validation/NEON/AccumulateWeighted.cpp2
-rw-r--r--tests/validation/NEON/ActivationLayer.cpp2
-rw-r--r--tests/validation/NEON/ArithmeticAddition.cpp2
-rw-r--r--tests/validation/NEON/ArithmeticSubtraction.cpp2
-rw-r--r--tests/validation/NEON/BatchNormalizationLayer.cpp2
-rw-r--r--tests/validation/NEON/BitwiseAnd.cpp2
-rw-r--r--tests/validation/NEON/BitwiseNot.cpp2
-rw-r--r--tests/validation/NEON/BitwiseOr.cpp2
-rw-r--r--tests/validation/NEON/BitwiseXor.cpp2
-rw-r--r--tests/validation/NEON/Box3x3.cpp2
-rw-r--r--tests/validation/NEON/ConvolutionLayer.cpp8
-rw-r--r--tests/validation/NEON/ConvolutionLayerDirect.cpp2
-rw-r--r--tests/validation/NEON/DepthConvert.cpp2
-rw-r--r--tests/validation/NEON/FillBorder.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Exp_QS16.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Exp_QS8.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Log_QS16.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Log_QS8.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp2
-rw-r--r--tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp2
-rw-r--r--tests/validation/NEON/FullyConnectedLayer.cpp2
-rw-r--r--tests/validation/NEON/GEMM.cpp2
-rw-r--r--tests/validation/NEON/Gaussian3x3.cpp2
-rw-r--r--tests/validation/NEON/Gaussian5x5.cpp2
-rw-r--r--tests/validation/NEON/IntegralImage.cpp2
-rw-r--r--tests/validation/NEON/MeanStdDev.cpp2
-rw-r--r--tests/validation/NEON/NonLinearFilter.cpp2
-rw-r--r--tests/validation/NEON/NormalizationLayer.cpp2
-rw-r--r--tests/validation/NEON/PixelWiseMultiplication.cpp2
-rw-r--r--tests/validation/NEON/PoolingLayer.cpp2
-rw-r--r--tests/validation/NEON/ROIPoolingLayer.cpp2
-rw-r--r--tests/validation/NEON/Sobel3x3.cpp2
-rw-r--r--tests/validation/NEON/Sobel5x5.cpp2
-rw-r--r--tests/validation/NEON/SoftmaxLayer.cpp2
-rw-r--r--tests/validation/NEON/Threshold.cpp2
-rw-r--r--tests/validation/Reference.h2
-rw-r--r--tests/validation/ReferenceCPP.h2
-rw-r--r--tests/validation/TensorFactory.h6
-rw-r--r--tests/validation/TensorOperations.h4
-rw-r--r--tests/validation/UNIT/FixedPoint.cpp2
-rw-r--r--tests/validation/UNIT/TensorInfo.cpp2
-rw-r--r--tests/validation/UNIT/TensorShape.cpp2
-rw-r--r--tests/validation/UNIT/Utils.cpp6
-rw-r--r--tests/validation/Validation.cpp8
-rw-r--r--tests/validation/Validation.h2
-rw-r--r--tests/validation/ValidationProgramOptions.h2
-rw-r--r--tests/validation/ValidationUserConfiguration.h2
-rw-r--r--tests/validation/system_tests/CL/AlexNet.cpp2
-rw-r--r--tests/validation/system_tests/CL/LeNet5.cpp2
-rw-r--r--tests/validation/system_tests/NEON/AlexNet.cpp2
-rw-r--r--tests/validation/system_tests/NEON/LeNet5.cpp2
-rw-r--r--utils/Utils.h12
171 files changed, 546 insertions, 527 deletions
diff --git a/arm_compute/core/CL/CLHelpers.h b/arm_compute/core/CL/CLHelpers.h
index 7b3af33fee..5234ae192e 100644
--- a/arm_compute/core/CL/CLHelpers.h
+++ b/arm_compute/core/CL/CLHelpers.h
@@ -103,4 +103,4 @@ GPUTarget get_target_from_device(cl::Device &device);
*/
GPUTarget get_arch_from_target(GPUTarget target);
}
-#endif
+#endif /* __ARM_COMPUTE_CLHELPERS_H__ */
diff --git a/arm_compute/core/NEON/kernels/NEAccumulateKernel.h b/arm_compute/core/NEON/kernels/NEAccumulateKernel.h
index df6d7b8891..12be3e4e7a 100644
--- a/arm_compute/core/NEON/kernels/NEAccumulateKernel.h
+++ b/arm_compute/core/NEON/kernels/NEAccumulateKernel.h
@@ -88,9 +88,9 @@ public:
// Inherited methods overridden:
void run(const Window &window) override;
};
-#else
+#else /* ARM_COMPUTE_ENABLE_FP16 */
using NEAccumulateWeightedFP16Kernel = NEAccumulateWeightedKernel;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
/** Interface for the accumulate squared kernel
*
diff --git a/arm_compute/core/NEON/kernels/NEBox3x3Kernel.h b/arm_compute/core/NEON/kernels/NEBox3x3Kernel.h
index 6b7bebbf17..1f0fef03da 100644
--- a/arm_compute/core/NEON/kernels/NEBox3x3Kernel.h
+++ b/arm_compute/core/NEON/kernels/NEBox3x3Kernel.h
@@ -55,8 +55,8 @@ public:
// Inherited methods overridden:
void run(const Window &window) override;
};
-#else
+#else /* ARM_COMPUTE_ENABLE_FP16 */
using NEBox3x3FP16Kernel = NEBox3x3Kernel;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
}
#endif /*__ARM_COMPUTE_NEBOX3x3KERNEL_H__ */
diff --git a/arm_compute/core/NEON/kernels/NEFastCornersKernel.h b/arm_compute/core/NEON/kernels/NEFastCornersKernel.h
index d9bd6acde9..b30ef49c44 100644
--- a/arm_compute/core/NEON/kernels/NEFastCornersKernel.h
+++ b/arm_compute/core/NEON/kernels/NEFastCornersKernel.h
@@ -69,4 +69,4 @@ private:
bool _non_max_suppression; /** true if non-maxima suppression is applied in the next stage */
};
}
-#endif
+#endif /* __ARM_COMPUTE_NEFASTCORNERSKERNEL_H__ */
diff --git a/arm_compute/core/NEON/kernels/NEFillArrayKernel.h b/arm_compute/core/NEON/kernels/NEFillArrayKernel.h
index 8e0846ea88..38f8a01288 100644
--- a/arm_compute/core/NEON/kernels/NEFillArrayKernel.h
+++ b/arm_compute/core/NEON/kernels/NEFillArrayKernel.h
@@ -70,4 +70,4 @@ private:
uint8_t _threshold;
};
}
-#endif
+#endif /* __ARM_COMPUTE_NEFILLARRAYKERNEL_H__*/
diff --git a/arm_compute/core/NEON/kernels/NEHarrisCornersKernel.h b/arm_compute/core/NEON/kernels/NEHarrisCornersKernel.h
index 0abd73ef97..88d70657f6 100644
--- a/arm_compute/core/NEON/kernels/NEHarrisCornersKernel.h
+++ b/arm_compute/core/NEON/kernels/NEHarrisCornersKernel.h
@@ -118,9 +118,9 @@ private:
/** Harris Score function to use for the particular image types passed to configure() */
HarrisScoreFunction *_func;
};
-#else
+#else /* ARM_COMPUTE_ENABLE_FP16 */
template <int32_t block_size>
using NEHarrisScoreFP16Kernel = NEHarrisScoreKernel<block_size>;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
}
#endif /* __ARM_COMPUTE_NEHARRISCORNERSKERNEL_H__ */
diff --git a/arm_compute/core/NEON/kernels/NEMagnitudePhaseKernel.h b/arm_compute/core/NEON/kernels/NEMagnitudePhaseKernel.h
index 5d49901dd0..8285e5ed39 100644
--- a/arm_compute/core/NEON/kernels/NEMagnitudePhaseKernel.h
+++ b/arm_compute/core/NEON/kernels/NEMagnitudePhaseKernel.h
@@ -156,9 +156,9 @@ private:
ITensor *_magnitude; /**< Output - Magnitude */
ITensor *_phase; /**< Output - Phase */
};
-#else
+#else /* ARM_COMPUTE_ENABLE_FP16 */
template <MagnitudeType mag_type, PhaseType phase_type>
using NEMagnitudePhaseFP16Kernel = NEMagnitudePhaseKernel<mag_type, phase_type>;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
}
#endif /* __ARM_COMPUTE_NEMAGNITUDEPHASEKERNEL_H__ */
diff --git a/arm_compute/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.h b/arm_compute/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.h
index 0daae59e54..68f11d8ffb 100644
--- a/arm_compute/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.h
+++ b/arm_compute/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.h
@@ -92,8 +92,8 @@ public:
*/
void configure(const ITensor *input, ITensor *output, bool border_undefined);
};
-#else
+#else /* ARM_COMPUTE_ENABLE_FP16 */
using NENonMaximaSuppression3x3FP16Kernel = NENonMaximaSuppression3x3Kernel;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
}
#endif /* _ARM_COMPUTE_NENONMAXIMASUPPRESSION3x3KERNEL_H__ */
diff --git a/scripts/check_bad_style.sh b/scripts/check_bad_style.sh
index 1cc514cdc3..29d14bdb4a 100755
--- a/scripts/check_bad_style.sh
+++ b/scripts/check_bad_style.sh
@@ -44,6 +44,23 @@ then
exit -1
fi
+grep -Hnir "#.*defined[^(]" $DIRECTORIES | tee bad_style.log
+if [[ $(cat bad_style.log | wc -l) > 0 ]]
+then
+ echo ""
+ echo "ERROR: use parenthesis after #if defined(MY_PREPROCESSOR)"
+ exit -1
+fi
+
+grep -Hnir "#else$\|#endif$" $DIRECTORIES | tee bad_style.log
+if [[ $(cat bad_style.log | wc -l) > 0 ]]
+then
+ echo ""
+ echo "ERROR: #else and #endif should be followed by a comment of the guard they refer to (e.g /* ARM_COMPUTE_ENABLE_FP16 */ )"
+ exit -1
+fi
+
+
spdx_missing=0
for f in $(find $DIRECTORIES -type f)
do
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp
index 4a92bac23c..dd3531e858 100644
--- a/src/core/CL/CLKernelLibrary.cpp
+++ b/src/core/CL/CLKernelLibrary.cpp
@@ -487,7 +487,7 @@ const std::map<std::string, std::string> CLKernelLibrary::_program_source_map =
"warp_perspective.cl",
#include "./cl_kernels/warp_perspective.clembed"
},
-#endif
+#endif /* EMBEDDED_KERNELS */
};
CLKernelLibrary::CLKernelLibrary()
@@ -560,7 +560,7 @@ const Program &CLKernelLibrary::load_program(const std::string &program_name) co
}
program = Program(_context, program_name, program_source_it->second);
-#else
+#else /* EMBEDDED_KERNELS */
// Check for binary
std::string source_name = _kernel_path + program_name;
std::string binary_name = source_name + "bin";
@@ -578,7 +578,7 @@ const Program &CLKernelLibrary::load_program(const std::string &program_name) co
{
ARM_COMPUTE_ERROR("Kernel file %s does not exist.", source_name.c_str());
}
-#endif
+#endif /* EMBEDDED_KERNELS */
// Insert program to program map
const auto new_program = _programs_map.emplace(program_name, std::move(program));
diff --git a/src/core/CL/cl_kernels/activation_layer.cl b/src/core/CL/cl_kernels/activation_layer.cl
index 136191aa22..721c43c017 100644
--- a/src/core/CL/cl_kernels/activation_layer.cl
+++ b/src/core/CL/cl_kernels/activation_layer.cl
@@ -51,48 +51,48 @@
*/
__kernel void activation_layer(
TENSOR3D_DECLARATION(input)
-#if !defined IN_PLACE
+#ifndef IN_PLACE
,
TENSOR3D_DECLARATION(output)
-#endif
+#endif /* not IN_PLACE */
)
{
// Get pixels pointer
Tensor3D input = CONVERT_TO_TENSOR3D_STRUCT(input);
-#if defined IN_PLACE
+#ifdef IN_PLACE
Tensor3D output = input;
-#else
+#else /* IN_PLACE */
Tensor3D output = CONVERT_TO_TENSOR3D_STRUCT(output);
-#endif
+#endif /* IN_PLACE */
// Load data
VEC_DATA_TYPE(DATA_TYPE, 16)
data = vload16(0, (__global DATA_TYPE *)input.ptr);
// Perform activation
-#if defined LOGISTIC
+#ifdef LOGISTIC
data = 1 / (1 + exp(-data));
-#elif defined TANH
+#elif defined(TANH)
data = (VEC_DATA_TYPE(DATA_TYPE, 16))A * tanh((VEC_DATA_TYPE(DATA_TYPE, 16))B * data);
-#elif defined RELU
+#elif defined(RELU)
data = max(0, data);
-#elif defined BRELU
+#elif defined(BRELU)
data = min((VEC_DATA_TYPE(DATA_TYPE, 16))A, max(0, data));
-#elif defined SRELU
+#elif defined(SRELU)
data = log(1 + exp(data));
-#elif defined ABS
-#if defined TYPE_INT
+#elif defined(ABS)
+#ifdef TYPE_INT
data = abs(data);
-#else
+#else /* TYPE_INT */
data = fabs(data);
-#endif
-#elif defined SQUARE
+#endif /* TYPE_INT */
+#elif defined(SQUARE)
data = data * data;
-#elif defined SQRT
+#elif defined(SQRT)
data = sqrt(data);
-#elif defined LINEAR
+#elif defined(LINEAR)
data = (VEC_DATA_TYPE(DATA_TYPE, 16))A * data + (VEC_DATA_TYPE(DATA_TYPE, 16))B;
-#endif
+#endif /* switch TANH, RELU, BRELU, SRELU, ABS, SQUARE, SQRT, LINEAR */
// Store result
vstore16(data, 0, (__global DATA_TYPE *)output.ptr);
diff --git a/src/core/CL/cl_kernels/arithmetic_op.cl b/src/core/CL/cl_kernels/arithmetic_op.cl
index 434300efa8..5102d34552 100644
--- a/src/core/CL/cl_kernels/arithmetic_op.cl
+++ b/src/core/CL/cl_kernels/arithmetic_op.cl
@@ -26,10 +26,10 @@
#ifdef SATURATE
#define ADD(x, y) add_sat((x), (y))
#define SUB(x, y) sub_sat((x), (y))
-#else
+#else /* SATURATE */
#define ADD(x, y) (x) + (y)
#define SUB(x, y) (x) - (y)
-#endif
+#endif /* SATURATE */
/** This function add two images.
*
diff --git a/src/core/CL/cl_kernels/channel_combine.cl b/src/core/CL/cl_kernels/channel_combine.cl
index 93e80b925e..d309812221 100644
--- a/src/core/CL/cl_kernels/channel_combine.cl
+++ b/src/core/CL/cl_kernels/channel_combine.cl
@@ -337,11 +337,11 @@ __kernel void channel_combine_NV(
uchar8 data1 = vload8(0, src_plane1.ptr);
uchar8 data2 = vload8(0, src_plane2.ptr);
-#if defined NV12
+#ifdef NV12
vstore16(shuffle2(data1, data2, (uchar16)(0, 2, 4, 6, 8, 10, 12, 14, 1, 3, 5, 7, 9, 11, 13, 15)), 0, dst_plane1.ptr);
-#elif defined NV21
+#elif defined(NV21)
vstore16(shuffle2(data2, data1, (uchar16)(0, 2, 4, 6, 8, 10, 12, 14, 1, 3, 5, 7, 9, 11, 13, 15)), 0, dst_plane1.ptr);
-#endif
+#endif /* NV12 or NV21 */
}
/** This function combines three planes to a single YUV444 or IYUV image.
@@ -405,12 +405,12 @@ __kernel void copy_planes_3p(
// Copy plane data
vstore16(vload16(0, src_plane0.ptr), 0, dst_plane0.ptr);
-#if defined YUV444
+#ifdef YUV444
vstore16(vload16(0, src_plane1.ptr), 0, dst_plane1.ptr);
vstore16(vload16(0, src_plane2.ptr), 0, dst_plane2.ptr);
-#elif defined IYUV
+#elif defined(IYUV)
vstore16(vload16(0, offset(&src_plane0, 0, height)), 0, (__global uchar *)offset(&dst_plane0, 0, height));
vstore8(vload8(0, src_plane1.ptr), 0, dst_plane1.ptr);
vstore8(vload8(0, src_plane2.ptr), 0, dst_plane2.ptr);
-#endif
+#endif /* YUV444 or IYUV */
}
diff --git a/src/core/CL/cl_kernels/channel_extract.cl b/src/core/CL/cl_kernels/channel_extract.cl
index 14c6c8a92a..e95bda465b 100644
--- a/src/core/CL/cl_kernels/channel_extract.cl
+++ b/src/core/CL/cl_kernels/channel_extract.cl
@@ -51,16 +51,16 @@ __kernel void channel_extract_RGB888(
uchar16 data = vload16(0, src.ptr);
uchar8 data2 = vload8(0, src.ptr + 16);
-#if defined CHANNEL_R
+#ifdef CHANNEL_R
vstore4(data.s0369, 0, dst.ptr);
vstore4((uchar4)(data.sCF, data2.s25), 0, dst.ptr + 4);
-#elif defined CHANNEL_G
+#elif defined(CHANNEL_G)
vstore4(data.s147A, 0, dst.ptr);
vstore4((uchar4)(data.sD, data2.s036), 0, dst.ptr + 4);
-#elif defined CHANNEL_B
+#elif defined(CHANNEL_B)
vstore4(data.s258B, 0, dst.ptr);
vstore4((uchar4)(data.sE, data2.s147), 0, dst.ptr + 4);
-#endif
+#endif /* CHANNEL_R or CHANNEL_G or CHANNEL_B */
}
/** This function extracts a given channel from an RGBA image.
@@ -91,15 +91,15 @@ __kernel void channel_extract_RGBA8888(
uchar16 data = vload16(0, src.ptr);
uchar16 data2 = vload16(0, src.ptr + 16);
-#if defined CHANNEL_R
+#ifdef CHANNEL_R
vstore8((uchar8)(data.s048C, data2.s048C), 0, dst.ptr);
-#elif defined CHANNEL_G
+#elif defined(CHANNEL_G)
vstore8((uchar8)(data.s159D, data2.s159D), 0, dst.ptr);
-#elif defined CHANNEL_B
+#elif defined(CHANNEL_B)
vstore8((uchar8)(data.s26AE, data2.s26AE), 0, dst.ptr);
-#elif defined CHANNEL_A
+#elif defined(CHANNEL_A)
vstore8((uchar8)(data.s37BF, data2.s37BF), 0, dst.ptr);
-#endif
+#endif /* CHANNEL_R or CHANNEL_G or CHANNEL_B or CHANNEL_A */
}
/** This function extracts a given channel from an YUYV image.
@@ -129,13 +129,13 @@ __kernel void channel_extract_YUYV422(
uchar16 data = vload16(0, src.ptr);
-#if defined CHANNEL_Y
+#ifdef CHANNEL_Y
vstore8(data.s02468ACE, 0, dst.ptr);
-#elif defined CHANNEL_U
+#elif defined(CHANNEL_U)
vstore4(data.s159D, 0, dst.ptr);
-#elif defined CHANNEL_V
+#elif defined(CHANNEL_V)
vstore4(data.s37BF, 0, dst.ptr);
-#endif
+#endif /* CHANNEL_Y or CHANNEL_U or CHANNEL_V */
}
/** This function extracts a given channel from an UYUV image.
@@ -165,13 +165,13 @@ __kernel void channel_extract_UYVY422(
uchar16 data = vload16(0, src.ptr);
-#if defined CHANNEL_Y
+#ifdef CHANNEL_Y
vstore8(data.s13579BDF, 0, dst.ptr);
-#elif defined CHANNEL_U
+#elif defined(CHANNEL_U)
vstore4(data.s048C, 0, dst.ptr);
-#elif defined CHANNEL_V
+#elif defined(CHANNEL_V)
vstore4(data.s26AE, 0, dst.ptr);
-#endif
+#endif /* CHANNEL_Y or CHANNEL_U or CHANNEL_V */
}
/** This function extracts a given channel from an NV12 image.
@@ -202,11 +202,11 @@ __kernel void channel_extract_NV12(
uchar16 data = vload16(0, src.ptr);
-#if defined CHANNEL_U
+#ifdef CHANNEL_U
vstore8(data.s02468ACE, 0, dst.ptr);
-#elif defined CHANNEL_V
+#elif defined(CHANNEL_V)
vstore8(data.s13579BDF, 0, dst.ptr);
-#endif
+#endif /* CHANNEL_U or CHANNEL_V */
}
/** This function extracts a given channel from an NV21 image.
@@ -237,11 +237,11 @@ __kernel void channel_extract_NV21(
uchar16 data = vload16(0, src.ptr);
-#if defined CHANNEL_U
+#ifdef CHANNEL_U
vstore8(data.s13579BDF, 0, dst.ptr);
-#elif defined CHANNEL_V
+#elif defined(CHANNEL_V)
vstore8(data.s02468ACE, 0, dst.ptr);
-#endif
+#endif /* CHANNEL_U or CHANNEL_V */
}
/** This function extracts a given plane from an multi-planar image.
diff --git a/src/core/CL/cl_kernels/convolution3x3.cl b/src/core/CL/cl_kernels/convolution3x3.cl
index 3733d0c733..8c75ecddb2 100644
--- a/src/core/CL/cl_kernels/convolution3x3.cl
+++ b/src/core/CL/cl_kernels/convolution3x3.cl
@@ -25,11 +25,11 @@
#ifndef DATA_TYPE
#define DATA_TYPE short
-#endif
+#endif /* DATA_TYPE */
#ifndef DATA_TYPE_OUT
#define DATA_TYPE_OUT uchar
-#endif
+#endif /* DATA_TYPE_OUT */
/** Compute a 1D horizontal convolution of size 3 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels).
*
diff --git a/src/core/CL/cl_kernels/convolution5x5.cl b/src/core/CL/cl_kernels/convolution5x5.cl
index d1335c5558..605cd09b89 100644
--- a/src/core/CL/cl_kernels/convolution5x5.cl
+++ b/src/core/CL/cl_kernels/convolution5x5.cl
@@ -25,15 +25,15 @@
#ifndef DATA_TYPE
#define DATA_TYPE short
-#endif
+#endif /* DATA_TYPE */
#ifndef COMPUTE_TYPE
#define COMPUTE_TYPE int
-#endif
+#endif /* COMPUTE_TYPE */
#ifndef DATA_TYPE_OUT
#define DATA_TYPE_OUT uchar
-#endif
+#endif /* DATA_TYPE_OUT */
/** Compute a 1D horizontal convolution of size 5 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels).
*
diff --git a/src/core/CL/cl_kernels/convolution7x7.cl b/src/core/CL/cl_kernels/convolution7x7.cl
index 74a0055370..1abfb156d3 100644
--- a/src/core/CL/cl_kernels/convolution7x7.cl
+++ b/src/core/CL/cl_kernels/convolution7x7.cl
@@ -25,15 +25,15 @@
#ifndef DATA_TYPE
#define DATA_TYPE short
-#endif
+#endif /* DATA_TYPE */
#ifndef COMPUTE_TYPE
#define COMPUTE_TYPE int
-#endif
+#endif /* COMPUTE_TYPE */
#ifndef DATA_TYPE_OUT
#define DATA_TYPE_OUT uchar
-#endif
+#endif /* DATA_TYPE_OUT */
/** Compute a 1D horizontal convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels).
*
diff --git a/src/core/CL/cl_kernels/convolution9x9.cl b/src/core/CL/cl_kernels/convolution9x9.cl
index d8b07cafac..f537326a31 100644
--- a/src/core/CL/cl_kernels/convolution9x9.cl
+++ b/src/core/CL/cl_kernels/convolution9x9.cl
@@ -25,15 +25,15 @@
#ifndef DATA_TYPE
#define DATA_TYPE short
-#endif
+#endif /* DATA_TYPE */
#ifndef COMPUTE_TYPE
#define COMPUTE_TYPE int
-#endif
+#endif /* COMPUTE_TYPE */
#ifndef DATA_TYPE_OUT
#define DATA_TYPE_OUT uchar
-#endif
+#endif /* DATA_TYPE_OUT */
/** Compute a 1D horizontal convolution of size 9 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels).
*
diff --git a/src/core/CL/cl_kernels/convolution_layer.cl b/src/core/CL/cl_kernels/convolution_layer.cl
index 837fdd70fe..a5cbe3d5c4 100644
--- a/src/core/CL/cl_kernels/convolution_layer.cl
+++ b/src/core/CL/cl_kernels/convolution_layer.cl
@@ -53,9 +53,9 @@
__kernel void reshape_to_columns(
TENSOR3D_DECLARATION(src),
IMAGE_DECLARATION(dst),
-#if defined HAS_BIAS
+#ifdef HAS_BIAS
VECTOR_DECLARATION(bias),
-#endif
+#endif /* HAS_BIAS */
uint width, uint height, uint depth, uint total_filters)
{
Tensor3D src = CONVERT_TO_TENSOR3D_STRUCT(src);
@@ -64,9 +64,9 @@ __kernel void reshape_to_columns(
__global uchar *tmp_src_ptr = src.ptr;
__global uchar *tmp_dst_ptr = dst_ptr + dst_offset_first_element_in_bytes + get_global_id(0) * dst_stride_y + get_global_id(1) * width * dst_stride_y + get_global_id(
2) * width * height * dst_stride_y;
-#if defined HAS_BIAS
+#ifdef HAS_BIAS
__global uchar *tmp_bias_ptr = bias_ptr + bias_offset_first_element_in_bytes;
-#endif
+#endif /* HAS_BIAS */
if(is_last_thread)
{
@@ -74,10 +74,10 @@ __kernel void reshape_to_columns(
{
*((__global DATA_TYPE *)tmp_dst_ptr) = *((__global DATA_TYPE *)tmp_src_ptr);
-#if defined HAS_BIAS
+#ifdef HAS_BIAS
*((__global DATA_TYPE *)(tmp_dst_ptr + dst_stride_y)) = *((__global DATA_TYPE *)(tmp_bias_ptr));
tmp_bias_ptr += bias_stride_x;
-#endif
+#endif /* HAS_BIAS */
tmp_src_ptr += depth * src_stride_z;
tmp_dst_ptr += dst_stride_x;
}
@@ -93,7 +93,7 @@ __kernel void reshape_to_columns(
}
}
-#if(defined CONVOLVED_WIDTH && defined STRIDE_X && defined STRIDE_Y && defined PAD_X && defined PAD_Y && defined KERNEL_WIDTH && defined KERNEL_HEIGHT && defined KERNEL_DEPTH && SRC_WIDTH && SRC_HEIGHT)
+#if defined(CONVOLVED_WIDTH) && defined(STRIDE_X) && defined(STRIDE_Y) && defined(PAD_X) && defined(PAD_Y) && defined(KERNEL_WIDTH) && defined(KERNEL_HEIGHT) && defined(KERNEL_DEPTH) && defined(SRC_WIDTH) && defined(SRC_HEIGHT)
/** This kernel performs a reshaping of the input tensor to a tensor used to perform convolution using GEMM.
*
* @note The data type must be passed at compile time using -DDATA_TYPE: e.g. -DDATA_TYPE=float
@@ -148,11 +148,11 @@ __kernel void im2col_generic(
}
}
-#if defined HAS_BIAS
+#if defined(HAS_BIAS)
*((__global DATA_TYPE *)output_ptr) = (DATA_TYPE)1;
-#endif
+#endif /* HAS_BIAS */
}
-#endif //(defined CONVOLVED_WIDTH && defined STRIDE_X && defined STRIDE_Y && defined PAD_X && defined PAD_Y && defined KERNEL_WIDTH && defined KERNEL_HEIGHT && defined KERNEL_DEPTH && SRC_WIDTH && SRC_HEIGHT)
+#endif //(CONVOLVED_WIDTH && STRIDE_X && STRIDE_Y && PAD_X && PAD_Y && KERNEL_WIDTH && KERNEL_HEIGHT && KERNEL_DEPTH && SRC_WIDTH && SRC_HEIGHT)
/** This kernel performs a reshaping of the output of the convolution layer.
*
@@ -220,12 +220,12 @@ __kernel void im2col_reduced(
*((__global DATA_TYPE *)tmp_out_ptr) = *((__global DATA_TYPE *)src.ptr);
-#if defined HAS_BIAS
+#ifdef HAS_BIAS
// If it is the last thread in the 3 dimensional workgroup
if(get_global_id(0) == (get_global_size(0) - 1) && get_global_id(1) == (get_global_size(1) - 1) && get_global_id(2) == (get_global_size(2) - 1))
{
tmp_out_ptr += dst_stride_x;
*((__global DATA_TYPE *)tmp_out_ptr) = (DATA_TYPE)1;
}
-#endif
+#endif /* HAS_BIAS */
}
diff --git a/src/core/CL/cl_kernels/convolution_rectangle.cl b/src/core/CL/cl_kernels/convolution_rectangle.cl
index 96b9cff3eb..f5a109fa91 100644
--- a/src/core/CL/cl_kernels/convolution_rectangle.cl
+++ b/src/core/CL/cl_kernels/convolution_rectangle.cl
@@ -31,15 +31,15 @@
#ifndef DATA_TYPE
#define DATA_TYPE short
-#endif
+#endif /* DATA_TYPE */
#ifndef COMPUTE_TYPE
#define COMPUTE_TYPE int
-#endif
+#endif /* COMPUTE_TYPE */
#ifndef DATA_TYPE_OUT
#define DATA_TYPE_OUT uchar
-#endif
+#endif /* DATA_TYPE_OUT */
#ifndef DYNAMIC_MATRIX_CONVOLUTION
@@ -89,24 +89,24 @@ __kernel void convolution_rectangle(
#if MATRIX_WIDTH == 3
pixels += convolution1x3(offset(&src, -1, -(MATRIX_HEIGHT / 2) + i), matrix_coeff[0 + i * 3], matrix_coeff[1 + i * 3],
matrix_coeff[2 + i * 3]);
-#endif
+#endif /* MATRIX_WIDTH */
#if MATRIX_WIDTH == 5
pixels += convolution1x5(offset(&src, -2, -(MATRIX_HEIGHT / 2) + i), matrix_coeff[0 + i * 5], matrix_coeff[1 + i * 5],
matrix_coeff[2 + i * 5], matrix_coeff[3 + i * 5], matrix_coeff[4 + i * 5]);
-#endif
+#endif /* MATRIX_WIDTH */
#if MATRIX_WIDTH == 7
pixels += convolution1x7(offset(&src, -3, -(MATRIX_HEIGHT / 2) + i), matrix_coeff[0 + i * 7], matrix_coeff[1 + i * 7],
matrix_coeff[2 + i * 7], matrix_coeff[3 + i * 7], matrix_coeff[4 + i * 7],
matrix_coeff[5 + i * 7], matrix_coeff[6 + i * 7]);
-#endif
+#endif /* MATRIX_WIDTH */
#if MATRIX_WIDTH == 9
pixels += convolution1x9(offset(&src, -4, -(MATRIX_HEIGHT / 2) + i), matrix_coeff[0 + i * 9], matrix_coeff[1 + i * 9],
matrix_coeff[2 + i * 9], matrix_coeff[3 + i * 9], matrix_coeff[4 + i * 9],
matrix_coeff[5 + i * 9], matrix_coeff[6 + i * 9], matrix_coeff[7 + i * 9], matrix_coeff[8 + i * 9]);
-#endif
+#endif /* MATRIX_WIDTH */
}
pixels /= (VEC_DATA_TYPE(DATA_TYPE, 8))SCALE;
@@ -115,4 +115,4 @@ __kernel void convolution_rectangle(
vstore8(CONVERT_SAT(pixels, VEC_DATA_TYPE(DATA_TYPE_OUT, 8)), 0, ((__global DATA_TYPE_OUT *)dst.ptr));
}
-#endif // DYNAMIC_MATRIX_CONVOLUTION
+#endif /* not DYNAMIC_MATRIX_CONVOLUTION */
diff --git a/src/core/CL/cl_kernels/depth_convert.cl b/src/core/CL/cl_kernels/depth_convert.cl
index c8eaa95352..3a1c7ca2c5 100644
--- a/src/core/CL/cl_kernels/depth_convert.cl
+++ b/src/core/CL/cl_kernels/depth_convert.cl
@@ -25,9 +25,9 @@
#ifdef SATURATE
#define CONVERT_DOWN(x, type) CONVERT_SAT(x, type)
-#else
+#else /* SATURATE */
#define CONVERT_DOWN(x, type) CONVERT(x, type)
-#endif
+#endif /* SATURATE */
/** This function performs a down-scaling depth conversion.
*
diff --git a/src/core/CL/cl_kernels/derivative.cl b/src/core/CL/cl_kernels/derivative.cl
index 0e810d2e7c..cd2091e237 100644
--- a/src/core/CL/cl_kernels/derivative.cl
+++ b/src/core/CL/cl_kernels/derivative.cl
@@ -52,29 +52,29 @@ __kernel void derivative(
#ifdef GRAD_X
,
IMAGE_DECLARATION(dst_gx)
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
,
IMAGE_DECLARATION(dst_gy)
-#endif
+#endif /* GRAD_Y */
)
{
Image src = CONVERT_TO_IMAGE_STRUCT(src);
#ifdef GRAD_X
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
#ifdef GRAD_X
short16 l_data = convert_short16(vload16(0, offset(&src, -1, 0)));
short16 r_data = convert_short16(vload16(0, offset(&src, 1, 0)));
vstore16(r_data - l_data, 0, ((__global short *)dst_gx.ptr));
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
short16 t_data = convert_short16(vload16(0, offset(&src, 0, -1)));
short16 b_data = convert_short16(vload16(0, offset(&src, 0, 1)));
vstore16(b_data - t_data, 0, ((__global short *)dst_gy.ptr));
-#endif
+#endif /* GRAD_Y */
}
diff --git a/src/core/CL/cl_kernels/fast_corners.cl b/src/core/CL/cl_kernels/fast_corners.cl
index 470d14a7b0..3e1929c637 100644
--- a/src/core/CL/cl_kernels/fast_corners.cl
+++ b/src/core/CL/cl_kernels/fast_corners.cl
@@ -206,12 +206,11 @@ __kernel void fast_corners(
return;
}
-#ifndef USE_MAXSUPPRESSION
- *out.ptr = 1;
-#else
-
+#ifdef USE_MAXSUPPRESSION
*out.ptr = compute_strength(p, in.ptr, input_stride_y, threshold);
-#endif
+#else /* USE_MAXSUPPRESSION */
+ *out.ptr = 1;
+#endif /* USE_MAXSUPPRESSION */
}
/** Copy result to Keypoint buffer and count number of corners
@@ -240,7 +239,7 @@ __kernel void copy_to_keypoint(
{
return;
}
-#endif
+#endif /* UPDATE_NUMBER */
Image in = CONVERT_TO_IMAGE_STRUCT(input);
diff --git a/src/core/CL/cl_kernels/gemm.cl b/src/core/CL/cl_kernels/gemm.cl
index 796b343bda..d25621db64 100644
--- a/src/core/CL/cl_kernels/gemm.cl
+++ b/src/core/CL/cl_kernels/gemm.cl
@@ -262,7 +262,7 @@ __kernel void gemm_interleave4x4_8bit(IMAGE_DECLARATION(src),
* @param[in] biases_step_x dst_stride_x * number of elements along X processed per workitem(in bytes)
* @param[in] biases_offset_first_element_in_bytes The offset of the first element in the destination tensor
*/
-#if(defined DATA_TYPE)
+#ifdef DATA_TYPE
__kernel void gemm_accumulate_biases(
IMAGE_DECLARATION(accum),
VECTOR_DECLARATION(biases))
@@ -279,9 +279,9 @@ __kernel void gemm_accumulate_biases(
// Store result in the accummulate buffer
vstore16(accum_value, 0, (__global DATA_TYPE *)accum.ptr);
}
-#endif // defined DATA_TYPE
+#endif /* DATA_TYPE */
-#if(defined WIDTH_MATRIX_B)
+#ifdef WIDTH_MATRIX_B
/** This OpenCL kernel computes the matrix multiplication between matrix A (src0) and matrix B (src1)
* Matrix A and matrix B must be reshaped respectively with @ref gemm_interleave4x4_8bit and @ref gemm_transpose1x16 before running the matrix multiplication
*
@@ -385,9 +385,9 @@ __kernel void gemm_mm_u8(IMAGE_DECLARATION(src0),
vstore16(convert_uchar16_sat(c20), 0, (__global uchar *)(offset(&dst, 0, 2)));
vstore16(convert_uchar16_sat(c30), 0, (__global uchar *)(offset(&dst, 0, 3)));
}
-#endif
+#endif /* WIDTH_MATRIX_B */
-#if(defined WIDTH_MATRIX_B && defined ALPHA)
+#if defined(WIDTH_MATRIX_B) && defined(ALPHA)
/** This OpenCL kernel is optimised for Midgard. It computes the matrix multiplication between matrix A (src0) and matrix B (src1)
* Matrix A and matrix B must be reshaped respectively with @ref gemm_interleave4x4_32bit and @ref gemm_transpose1x4 before running the matrix multiplication
*
@@ -796,7 +796,7 @@ __kernel void gemm_mm_f16(IMAGE_DECLARATION(src0),
vstore8(c30, 0, (__global half *)(offset(&dst, 0, 3)));
}
-#if(defined FIXED_POINT_POSITION)
+#ifdef FIXED_POINT_POSITION
/** This OpenCL kernel computes the matrix multiplication between matrix A (src0) and matrix B (src1) in 8 bit fixed point precision
* Matrix A and matrix B must be reshaped respectively with @ref gemm_interleave4x4_8bit and @ref gemm_transpose1x16 before running the matrix multiplication
*
@@ -888,9 +888,9 @@ __kernel void gemm_mm_qs8(IMAGE_DECLARATION(src0),
vstore16(c20_qs8, 0, (__global char *)(offset(&dst, 0, 2)));
vstore16(c30_qs8, 0, (__global char *)(offset(&dst, 0, 3)));
}
-#endif // (defined FIXED_POINT_POSITION)
+#endif /* FIXED_POINT_POSITION */
-#if(defined WIDTH_VECTOR_A)
+#ifdef WIDTH_VECTOR_A
/** This OpenCL kernel computes the vector by matrix multiplication between the vector A (src0) and matrix B (src1)
*
* @attention The width of vector A, the width of matrix B and the alpha's value need to be passed at compile time using -DWIDTH_VECTOR_A -DWIDTH_MATRIX_B and -DALPHA
@@ -1027,7 +1027,7 @@ __kernel void gemm_vm_f16(IMAGE_DECLARATION(src0),
vstore8(acc, 0, (__global half *)(offset(&dst, 0, 0)));
}
-#if(defined FIXED_POINT_POSITION)
+#ifdef FIXED_POINT_POSITION
/** This OpenCL kernel computes the vector by matrix multiplication between the vector A (src0) and matrix B (src1) in 8 bit fixed point
*
* @attention The width of vector A, the width of matrix B, the alpha's value and the fixed point position need to be passed at compile time using -DWIDTH_VECTOR_A -DWIDTH_MATRIX_B, -DALPHA and -DFIXED_POINT_POSITION
@@ -1111,11 +1111,11 @@ __kernel void gemm_vm_qs8(IMAGE_DECLARATION(src0),
/* Store 16 values */
vstore16(acc_qs8, 0, (__global char *)(offset(&dst, 0, 0)));
}
-#endif /* #if(defined FIXED_POINT_POSITION) */
-#endif /* (defined WIDTH_VECTOR_A) */
-#endif /* (defined WIDTH_MATRIX_B && defined ALPHA) */
+#endif /* FIXED_POINT_POSITION */
+#endif /* WIDTH_VECTOR_A */
+#endif /* WIDTH_MATRIX_B && ALPHA */
-#if(defined BETA)
+#ifdef BETA
/** This OpenCL kernel performs the in-place matrix addition between 2 matrices taking into account that the second matrix might be weighted by a scalar value beta:
*
* @attention The beta's value need to be passed at compile time using -DBETA
@@ -1190,7 +1190,7 @@ __kernel void gemm_ma_f16(IMAGE_DECLARATION(src),
vstore8(out, 0, (__global half *)dst.ptr);
}
-#if(defined FIXED_POINT_POSITION)
+#ifdef FIXED_POINT_POSITION
/** This OpenCL kernel performs the in-place matrix addition between 2 matrices in 8 bit fixed point taking into account that the second matrix might be weighted by a scalar value beta:
*
* @attention The beta's value and the fixed point position need to be passed at compile time using -DBETA and -DFIXED_POINT_POSITION
@@ -1229,10 +1229,10 @@ __kernel void gemm_ma_qs8(IMAGE_DECLARATION(src),
/* Store final result in axb matrix */
vstore16(out, 0, (__global char *)dst.ptr);
}
-#endif /* #if(defined FIXED_POINT_POSITION) */
-#endif /* (defined BETA) */
+#endif /* FIXED_POINT_POSITION */
+#endif /* BETA */
-#if(defined WIDTH_VECTOR_A)
+#ifdef WIDTH_VECTOR_A
/** This OpenCL kernel computes the vector by matrix multiplication between each row of A (src0) and matrix B (src1) used for locally connected layer
*
* @attention The width of A need to be passed at compile time using -DWIDTH_VECTOR_A
@@ -1298,4 +1298,4 @@ __kernel void gemm_lc_vm_f32(IMAGE_DECLARATION(src0),
vstore4(acc, 0, (__global float *)(offset(&dst, 0, 0)));
}
-#endif /* (defined WIDTH_VECTOR_A) */
+#endif /* WIDTH_VECTOR_A */
diff --git a/src/core/CL/cl_kernels/hog.cl b/src/core/CL/cl_kernels/hog.cl
index 31dd57b767..5d3a607c44 100644
--- a/src/core/CL/cl_kernels/hog.cl
+++ b/src/core/CL/cl_kernels/hog.cl
@@ -24,7 +24,7 @@
#include "helpers.h"
#include "types.h"
-#if(defined CELL_WIDTH && defined CELL_HEIGHT && defined NUM_BINS && defined PHASE_SCALE)
+#if defined(CELL_WIDTH) && defined(CELL_HEIGHT) && defined(NUM_BINS) && defined(PHASE_SCALE)
/** This OpenCL kernel computes the HOG orientation binning
*
@@ -159,21 +159,21 @@ __kernel void hog_orientation_binning(IMAGE_DECLARATION(mag),
((__global float *)dst.ptr)[xc] = bins[xc];
}
}
-#endif // (defined CELL_WIDTH && defined CELL_HEIGHT && defined NUM_BINS && defined PHASE_SCALE)
+#endif /* CELL_WIDTH and CELL_HEIGHT and NUM_BINS and PHASE_SCALE */
-#if(defined NUM_CELLS_PER_BLOCK_HEIGHT && defined NUM_BINS_PER_BLOCK_X && defined NUM_BINS_PER_BLOCK && HOG_NORM_TYPE && defined L2_HYST_THRESHOLD)
+#if defined(NUM_CELLS_PER_BLOCK_HEIGHT) && defined(NUM_BINS_PER_BLOCK_X) && defined(NUM_BINS_PER_BLOCK) && defined(HOG_NORM_TYPE) && defined(L2_HYST_THRESHOLD)
#ifndef L2_NORM
#error The value of enum class HOGNormType::L2_NORM has not be passed to the OpenCL kernel
-#endif
+#endif /* not L2_NORM */
#ifndef L2HYS_NORM
#error The value of enum class HOGNormType::L2HYS_NORM has not be passed to the OpenCL kernel
-#endif
+#endif /* not L2HYS_NORM */
#ifndef L1_NORM
#error The value of enum class HOGNormType::L1_NORM has not be passed to the OpenCL kernel
-#endif
+#endif /* not L1_NORM */
/** This OpenCL kernel computes the HOG block normalization
*
@@ -231,13 +231,13 @@ __kernel void hog_block_normalization(IMAGE_DECLARATION(src),
sum_f32 += val1 * val1;
sum_f32 += val2 * val2;
sum_f32 += val3 * val3;
-#else
+#else /* (HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM) */
// Compute |val| for L1_NORM
sum_f32 += fabs(val0);
sum_f32 += fabs(val1);
sum_f32 += fabs(val2);
sum_f32 += fabs(val3);
-#endif // (HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM)
+#endif /* (HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM) */
// Store linearly the input values un-normalized in the output image. These values will be reused for the normalization.
// This approach will help us to be cache friendly in the next for loop where the normalization will be done because all the values
@@ -255,9 +255,9 @@ __kernel void hog_block_normalization(IMAGE_DECLARATION(src),
#if(HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM)
sum += val * val;
-#else
+#else /* (HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM) */
sum += fabs(val);
-#endif // (HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM)
+#endif /* (HOG_NORM_TYPE == L2_NORM) || (HOG_NORM_TYPE == L2HYS_NORM) */
((__global float *)dst.ptr)[xc + 0 + yc * NUM_BINS_PER_BLOCK_X] = val;
}
@@ -322,7 +322,7 @@ __kernel void hog_block_normalization(IMAGE_DECLARATION(src),
// We use the same constants of OpenCV
scale = 1.0f / (sqrt(sum) + 1e-3f);
-#endif // (HOG_NORM_TYPE == L2HYS_NORM)
+#endif /* (HOG_NORM_TYPE == L2HYS_NORM) */
int i = 0;
for(; i <= (NUM_BINS_PER_BLOCK - 16); i += 16)
@@ -349,9 +349,9 @@ __kernel void hog_block_normalization(IMAGE_DECLARATION(src),
((__global float *)dst.ptr)[i] *= scale;
}
}
-#endif // (defined NUM_CELLS_PER_BLOCK_HEIGHT && defined NUM_BINS_PER_BLOCK_X && defined NUM_BINS_PER_BLOCK && HOG_NORM_TYPE && defined L2_HYST_THRESHOLD)
+#endif /* NUM_CELLS_PER_BLOCK_HEIGHT and NUM_BINS_PER_BLOCK_X and NUM_BINS_PER_BLOCK and HOG_NORM_TYPE and L2_HYST_THRESHOLD */
-#if(defined NUM_BLOCKS_PER_DESCRIPTOR_Y && defined NUM_BINS_PER_DESCRIPTOR_X && defined THRESHOLD && defined MAX_NUM_DETECTION_WINDOWS && defined IDX_CLASS && defined BLOCK_STRIDE_WIDTH && defined BLOCK_STRIDE_HEIGHT && defined DETECTION_WINDOW_WIDTH && defined DETECTION_WINDOW_HEIGHT)
+#if defined(NUM_BLOCKS_PER_DESCRIPTOR_Y) && defined(NUM_BINS_PER_DESCRIPTOR_X) && defined(THRESHOLD) && defined(MAX_NUM_DETECTION_WINDOWS) && defined(IDX_CLASS) && defined(BLOCK_STRIDE_WIDTH) && defined(BLOCK_STRIDE_HEIGHT) && defined(DETECTION_WINDOW_WIDTH) && defined(DETECTION_WINDOW_HEIGHT)
/** This OpenCL kernel computes the HOG detector using linear SVM
*
@@ -452,4 +452,5 @@ __kernel void hog_detector(IMAGE_DECLARATION(src),
}
}
}
-#endif // defined BIAS && defined NUM_BLOCKS_PER_DESCRIPTOR_Y && defined NUM_BINS_PER_DESCRIPTOR_X && ...
+#endif /* NUM_BLOCKS_PER_DESCRIPTOR_Y && NUM_BINS_PER_DESCRIPTOR_X && THRESHOLD && MAX_NUM_DETECTION_WINDOWS && IDX_CLASS &&
+ * BLOCK_STRIDE_WIDTH && BLOCK_STRIDE_HEIGHT && DETECTION_WINDOW_WIDTH && DETECTION_WINDOW_HEIGHT */
diff --git a/src/core/CL/cl_kernels/magnitude_phase.cl b/src/core/CL/cl_kernels/magnitude_phase.cl
index c4b0df8de9..e9845e0e20 100644
--- a/src/core/CL/cl_kernels/magnitude_phase.cl
+++ b/src/core/CL/cl_kernels/magnitude_phase.cl
@@ -81,17 +81,17 @@ inline uchar16 phase_signed(VEC_DATA_TYPE(DATA_TYPE, 16) a, VEC_DATA_TYPE(DATA_T
#define MAGNITUDE_OP(x, y) magnitude_l1((x), (y))
#elif(2 == MAGNITUDE)
#define MAGNITUDE_OP(x, y) magnitude_l2(convert_int16(x), convert_int16(y))
-#else
+#else /* MAGNITUDE */
#define MAGNITUDE_OP(x, y)
-#endif
+#endif /* MAGNITUDE */
#if(1 == PHASE)
#define PHASE_OP(x, y) phase_unsigned((x), (y))
#elif(2 == PHASE)
#define PHASE_OP(x, y) phase_signed((x), (y))
-#else
+#else /* PHASE */
#define PHASE_OP(x, y)
-#endif
+#endif /* PHASE */
/** Calculate the magnitude and phase of given the gradients of an image.
*
@@ -133,11 +133,11 @@ __kernel void magnitude_phase(
#ifdef MAGNITUDE
,
IMAGE_DECLARATION(magnitude)
-#endif
+#endif /* MAGNITUDE */
#ifdef PHASE
,
IMAGE_DECLARATION(phase)
-#endif
+#endif /* PHASE */
)
{
// Get pixels pointer
@@ -154,9 +154,9 @@ __kernel void magnitude_phase(
#ifdef MAGNITUDE
Image magnitude = CONVERT_TO_IMAGE_STRUCT(magnitude);
vstore16(MAGNITUDE_OP(in_a, in_b), 0, (__global DATA_TYPE *)magnitude.ptr);
-#endif
+#endif /* MAGNITUDE */
#ifdef PHASE
Image phase = CONVERT_TO_IMAGE_STRUCT(phase);
vstore16(PHASE_OP(in_a, in_b), 0, phase.ptr);
-#endif
+#endif /* PHASE */
}
diff --git a/src/core/CL/cl_kernels/mean_stddev.cl b/src/core/CL/cl_kernels/mean_stddev.cl
index 50b8312548..7c29d2fe96 100644
--- a/src/core/CL/cl_kernels/mean_stddev.cl
+++ b/src/core/CL/cl_kernels/mean_stddev.cl
@@ -44,19 +44,19 @@ __kernel void mean_stddev_accumulate(
IMAGE_DECLARATION(src),
uint height,
__global ulong *global_sum
-#if defined STDDEV
+#ifdef STDDEV
,
__global ulong *global_sum_sq
-#endif
+#endif /* STDDEV */
)
{
// Get pixels pointer
Image src = CONVERT_TO_IMAGE_STRUCT(src);
- uint8 tmp_sum = 0;
-#if defined STDDEV
- uint8 tmp_sum_sq = 0;
-#endif
+ uint8 tmp_sum = 0;
+#ifdef STDDEV
+ uint8 tmp_sum_sq = 0;
+#endif /* STDDEV */
// Calculate partial sum
for(int i = 0; i < height; i++)
{
@@ -64,20 +64,20 @@ __kernel void mean_stddev_accumulate(
uint8 data = convert_uint8(vload8(0, offset(&src, 0, i)));
tmp_sum += data;
-#if defined STDDEV
+#ifdef STDDEV
tmp_sum_sq += data * data;
-#endif
+#endif /* STDDEV */
}
// Perform reduction
tmp_sum.s0123 += tmp_sum.s4567;
tmp_sum.s01 += tmp_sum.s23;
atom_add(global_sum, tmp_sum.s0 + tmp_sum.s1);
-#if defined STDDEV
+#ifdef STDDEV
tmp_sum_sq.s0123 += tmp_sum_sq.s4567;
tmp_sum_sq.s01 += tmp_sum_sq.s23;
atom_add(global_sum_sq, tmp_sum_sq.s0 + tmp_sum_sq.s1);
-#endif
+#endif /* STDDEV */
}
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
diff --git a/src/core/CL/cl_kernels/minmaxloc.cl b/src/core/CL/cl_kernels/minmaxloc.cl
index 799b1e8c3b..e628e9bd5b 100644
--- a/src/core/CL/cl_kernels/minmaxloc.cl
+++ b/src/core/CL/cl_kernels/minmaxloc.cl
@@ -26,11 +26,11 @@
#ifndef DATA_TYPE_MIN
#define DATA_TYPE_MIN 0x0
-#endif
+#endif /* DATA_TYPE_MIN */
#ifndef DATA_TYPE_MAX
#define DATA_TYPE_MAX 0xFF
-#endif
+#endif /* DATA_TYPE_MAX */
__constant VEC_DATA_TYPE(DATA_TYPE, 16) type_min = (VEC_DATA_TYPE(DATA_TYPE, 16))(DATA_TYPE_MIN);
__constant VEC_DATA_TYPE(DATA_TYPE, 16) type_max = (VEC_DATA_TYPE(DATA_TYPE, 16))(DATA_TYPE_MAX);
@@ -82,7 +82,7 @@ __kernel void minmax(
widx = CONVERT(((uint16)(width4 << 4) + idx16) < width, VEC_DATA_TYPE(DATA_TYPE, 16));
local_max = max(local_max, select(type_min, data, widx));
local_min = min(local_min, select(type_max, data, widx));
-#endif
+#endif /* NON_MULTIPLE_OF_16 */
// Perform min/max reduction
local_min.s01234567 = min(local_min.s01234567, local_min.s89ABCDEF);
@@ -124,41 +124,41 @@ __kernel void minmaxloc(
IMAGE_DECLARATION(src),
__global int *min_max,
__global uint *min_max_count
-#if defined LOCATE_MIN
+#ifdef LOCATE_MIN
,
__global Coordinates2D *min_loc, uint max_min_loc_count
-#endif
-#if defined LOCATE_MAX
+#endif /* LOCATE_MIN */
+#ifdef LOCATE_MAX
,
__global Coordinates2D *max_loc, uint max_max_loc_count
-#endif
+#endif /* LOCATE_MAX */
)
{
Image src = CONVERT_TO_IMAGE_STRUCT(src);
DATA_TYPE value = *((__global DATA_TYPE *)src.ptr);
-#if defined COUNT_MIN_MAX
+#ifdef COUNT_MIN_MAX
if(value == min_max[0])
{
uint idx = atomic_inc(&min_max_count[0]);
-#if defined LOCATE_MIN
+#ifdef LOCATE_MIN
if(idx < max_min_loc_count)
{
min_loc[idx].x = get_global_id(0);
min_loc[idx].y = get_global_id(1);
}
-#endif
+#endif /* LOCATE_MIN */
}
if(value == min_max[1])
{
uint idx = atomic_inc(&min_max_count[1]);
-#if defined LOCATE_MAX
+#ifdef LOCATE_MAX
if(idx < max_max_loc_count)
{
max_loc[idx].x = get_global_id(0);
max_loc[idx].y = get_global_id(1);
}
-#endif
+#endif /* LOCATE_MAX */
}
-#endif
+#endif /* COUNT_MIN_MAX */
}
diff --git a/src/core/CL/cl_kernels/non_linear_filter3x3.cl b/src/core/CL/cl_kernels/non_linear_filter3x3.cl
index f860c96bb8..19118ea23b 100644
--- a/src/core/CL/cl_kernels/non_linear_filter3x3.cl
+++ b/src/core/CL/cl_kernels/non_linear_filter3x3.cl
@@ -54,13 +54,13 @@ __kernel void non_linear_filter_box3x3(
uchar16 bottom = vload16(0, offset(&src, -1, 1));
// Apply respective filter
-#if defined MIN
- uchar16 tmp = min(top, min(middle, bottom));
- uchar8 out = row_reduce_min_3(tmp);
-#elif defined MAX
+#ifdef MIN
+ uchar16 tmp = min(top, min(middle, bottom));
+ uchar8 out = row_reduce_min_3(tmp);
+#elif defined(MAX)
uchar16 tmp = max(top, max(middle, bottom));
uchar8 out = row_reduce_max_3(tmp);
-#elif defined MEDIAN
+#elif defined(MEDIAN)
uchar8 p0 = top.s01234567;
uchar8 p1 = top.s12345678;
uchar8 p2 = top.s23456789;
@@ -71,9 +71,9 @@ __kernel void non_linear_filter_box3x3(
uchar8 p7 = bottom.s12345678;
uchar8 p8 = bottom.s23456789;
uchar8 out = sort9(p0, p1, p2, p3, p4, p5, p6, p7, p8);
-#else
+#else /* MIN or MAX or MEDIAN */
#error "Unsupported filter function"
-#endif
+#endif /* MIN or MAX or MEDIAN */
// Store result
vstore8(out, 0, dst.ptr);
@@ -109,22 +109,22 @@ __kernel void non_linear_filter_cross3x3(
uchar8 bottom = vload8(0, offset(&src, 0, 1));
// Apply respective filter
-#if defined MIN
- uchar8 tmp_middle = row_reduce_min_3(middle);
- uchar8 out = min(tmp_middle, min(top, bottom));
-#elif defined MAX
+#ifdef MIN
+ uchar8 tmp_middle = row_reduce_min_3(middle);
+ uchar8 out = min(tmp_middle, min(top, bottom));
+#elif defined(MAX)
uchar8 tmp_middle = row_reduce_max_3(middle);
uchar8 out = max(tmp_middle, max(top, bottom));
-#elif defined MEDIAN
+#elif defined(MEDIAN)
uchar8 p0 = top.s01234567;
uchar8 p1 = middle.s01234567;
uchar8 p2 = middle.s12345678;
uchar8 p3 = middle.s23456789;
uchar8 p4 = bottom.s01234567;
uchar8 out = sort5(p0, p1, p2, p3, p4);
-#else
+#else /* MIN or MAX or MEDIAN */
#error "Unsupported filter function"
-#endif
+#endif /* MIN or MAX or MEDIAN */
// Store result
vstore8(out, 0, dst.ptr);
@@ -160,13 +160,13 @@ __kernel void non_linear_filter_disk3x3(
uchar16 bottom = vload16(0, offset(&src, -1, 1));
// Apply respective filter
-#if defined MIN
- uchar16 tmp = min(top, min(middle, bottom));
- uchar8 out = row_reduce_min_3(tmp);
-#elif defined MAX
+#ifdef MIN
+ uchar16 tmp = min(top, min(middle, bottom));
+ uchar8 out = row_reduce_min_3(tmp);
+#elif defined(MAX)
uchar16 tmp = max(top, max(middle, bottom));
uchar8 out = row_reduce_max_3(tmp);
-#elif defined MEDIAN
+#elif defined(MEDIAN)
uchar8 p0 = top.s01234567;
uchar8 p1 = top.s12345678;
uchar8 p2 = top.s23456789;
@@ -177,9 +177,9 @@ __kernel void non_linear_filter_disk3x3(
uchar8 p7 = bottom.s12345678;
uchar8 p8 = bottom.s23456789;
uchar8 out = sort9(p0, p1, p2, p3, p4, p5, p6, p7, p8);
-#else
+#else /* MIN or MAX or MEDIAN */
#error "Unsupported filter function"
-#endif
+#endif /* MIN or MAX or MEDIAN */
// Store result
vstore8(out, 0, dst.ptr);
diff --git a/src/core/CL/cl_kernels/non_linear_filter5x5.cl b/src/core/CL/cl_kernels/non_linear_filter5x5.cl
index d9ae95fd2d..92f7a99851 100644
--- a/src/core/CL/cl_kernels/non_linear_filter5x5.cl
+++ b/src/core/CL/cl_kernels/non_linear_filter5x5.cl
@@ -351,17 +351,17 @@ __kernel void non_linear_filter_box5x5(
uchar16 bottom2 = vload16(0, offset(&src, -2, 2));
// Apply respective filter
-#if defined MIN
- uchar16 tmp = min(middle, min(min(top2, top), min(bottom, bottom2)));
- uchar8 out = row_reduce_min_5(tmp);
-#elif defined MAX
+#ifdef MIN
+ uchar16 tmp = min(middle, min(min(top2, top), min(bottom, bottom2)));
+ uchar8 out = row_reduce_min_5(tmp);
+#elif defined(MAX)
uchar16 tmp = max(middle, max(max(top2, top), max(bottom, bottom2)));
uchar8 out = row_reduce_max_5(tmp);
-#elif defined MEDIAN
+#elif defined(MEDIAN)
uchar8 out = median_box5x5(top2, top, middle, bottom, bottom2);
-#else
+#else /* MIN or MAX or MEDIAN */
#error "Unsupported filter function"
-#endif
+#endif /* MIN or MAX or MEDIAN */
// Store result
vstore8(out, 0, dst.ptr);
@@ -399,13 +399,13 @@ __kernel void non_linear_filter_cross5x5(
uchar16 bottom2 = vload16(0, offset(&src, 0, 2));
// Apply respective filter
-#if defined MIN
- uchar8 tmp_middle = row_reduce_min_5(middle);
- uchar8 out = min(tmp_middle, min(min(top2.s01234567, top.s01234567), min(bottom.s01234567, bottom2.s01234567)));
-#elif defined MAX
+#ifdef MIN
+ uchar8 tmp_middle = row_reduce_min_5(middle);
+ uchar8 out = min(tmp_middle, min(min(top2.s01234567, top.s01234567), min(bottom.s01234567, bottom2.s01234567)));
+#elif defined(MAX)
uchar8 tmp_middle = row_reduce_max_5(middle);
uchar8 out = max(tmp_middle, max(max(top2.s01234567, top.s01234567), max(bottom.s01234567, bottom2.s01234567)));
-#elif defined MEDIAN
+#elif defined(MEDIAN)
uchar8 p0 = top2.s01234567;
uchar8 p1 = top.s01234567;
uchar8 p2 = middle.s01234567;
@@ -416,9 +416,9 @@ __kernel void non_linear_filter_cross5x5(
uchar8 p7 = bottom.s01234567;
uchar8 p8 = bottom2.s01234567;
uchar8 out = sort9(p0, p1, p2, p3, p4, p5, p6, p7, p8);
-#else
+#else /* MIN or MAX or MEDIAN */
#error "Unsupported filter function"
-#endif
+#endif /* MIN or MAX or MEDIAN */
// Store result
vstore8(out, 0, dst.ptr);
@@ -456,23 +456,23 @@ __kernel void non_linear_filter_disk5x5(
uchar16 bottom2 = vload16(0, offset(&src, -1, 2));
// Apply respective filter
-#if defined MIN
- uchar16 tmp_3 = min(top2, bottom2);
- uchar16 tmp_5 = min(middle, min(top, bottom));
- uchar8 tmp_3_red = row_reduce_min_3(tmp_3);
- uchar8 tmp_5_red = row_reduce_min_5(tmp_5);
- uchar8 out = min(tmp_3_red, tmp_5_red);
-#elif defined MAX
+#ifdef MIN
+ uchar16 tmp_3 = min(top2, bottom2);
+ uchar16 tmp_5 = min(middle, min(top, bottom));
+ uchar8 tmp_3_red = row_reduce_min_3(tmp_3);
+ uchar8 tmp_5_red = row_reduce_min_5(tmp_5);
+ uchar8 out = min(tmp_3_red, tmp_5_red);
+#elif defined(MAX)
uchar16 tmp_3 = max(top2, bottom2);
uchar16 tmp_5 = max(middle, max(top, bottom));
uchar8 tmp_3_red = row_reduce_max_3(tmp_3);
uchar8 tmp_5_red = row_reduce_max_5(tmp_5);
uchar8 out = max(tmp_3_red, tmp_5_red);
-#elif defined MEDIAN
+#elif defined(MEDIAN)
uchar8 out = median_disk5x5(top2, top, middle, bottom, bottom2);
-#else
+#else /* MIN or MAX or MEDIAN */
#error "Unsupported filter function"
-#endif
+#endif /* MIN or MAX or MEDIAN */
// Store result
vstore8(out, 0, dst.ptr);
diff --git a/src/core/CL/cl_kernels/pixelwise_mul_float.cl b/src/core/CL/cl_kernels/pixelwise_mul_float.cl
index ae2031f422..89367dc0ce 100644
--- a/src/core/CL/cl_kernels/pixelwise_mul_float.cl
+++ b/src/core/CL/cl_kernels/pixelwise_mul_float.cl
@@ -25,9 +25,9 @@
#ifdef SATURATE
#define CONVERT_OP_FLOAT_STR(x, type, round) (convert_##type##_sat##round(x))
-#else
+#else /* SATURATE */
#define CONVERT_OP_FLOAT_STR(x, type, round) (convert_##type##round(x))
-#endif
+#endif /* SATURATE */
#define CONVERT_OP_FLOAT(x, type, round) CONVERT_OP_FLOAT_STR(x, type, round)
/** Performs a pixelwise multiplication with float scale of either integer or float inputs.
@@ -76,13 +76,13 @@ __kernel void pixelwise_mul_float(
in2_data = CONVERT(vload16(0, (__global DATA_TYPE_IN2 *)in2.ptr), VEC_DATA_TYPE(DATA_TYPE_RES, 16));
// Perform multiplication
-#if defined DATA_TYPE_FLOAT
+#ifdef DATA_TYPE_FLOAT
VEC_DATA_TYPE(DATA_TYPE_OUT, 16)
res = CONVERT(in1_data * in2_data * scale, VEC_DATA_TYPE(DATA_TYPE_OUT, 16));
-#else
+#else /* DATA_TYPE_FLOAT */
VEC_DATA_TYPE(DATA_TYPE_OUT, 16)
res = CONVERT_OP_FLOAT(CONVERT_OP_FLOAT((convert_float16(in1_data * in2_data) * scale), VEC_DATA_TYPE(DATA_TYPE_RES, 16), ROUND), VEC_DATA_TYPE(DATA_TYPE_OUT, 16), ROUND);
-#endif
+#endif /* DATA_TYPE_FLOAT */
// Store result
vstore16(res, 0, (__global DATA_TYPE_OUT *)out.ptr);
diff --git a/src/core/CL/cl_kernels/pixelwise_mul_int.cl b/src/core/CL/cl_kernels/pixelwise_mul_int.cl
index 05c437cd17..e6dfd3043d 100644
--- a/src/core/CL/cl_kernels/pixelwise_mul_int.cl
+++ b/src/core/CL/cl_kernels/pixelwise_mul_int.cl
@@ -25,9 +25,9 @@
#ifdef SATURATE
#define CONVERT_OP_INT_STR(x, type) (convert_##type##_sat(x))
-#else
+#else /* SATURATE */
#define CONVERT_OP_INT_STR(x, type) (convert_##type(x))
-#endif
+#endif /* SATURATE */
#define CONVERT_OP_INT(x, type) CONVERT_OP_INT_STR(x, type)
/** Performs a pixelwise multiplication with integer scale of integer inputs.
diff --git a/src/core/CL/cl_kernels/pooling_layer.cl b/src/core/CL/cl_kernels/pooling_layer.cl
index 6bdb174235..b7245203d4 100644
--- a/src/core/CL/cl_kernels/pooling_layer.cl
+++ b/src/core/CL/cl_kernels/pooling_layer.cl
@@ -23,11 +23,11 @@
*/
#include "helpers.h"
-#if defined POOL_AVG
+#ifdef POOL_AVG
#define POOL_OP(x, y) ((x) + (y))
-#else
+#else /* POOL_AVG */
#define POOL_OP(x, y) (fmax((x), (y)))
-#endif
+#endif /* POOL_AVG */
float calculate_avg_scale(const int pool_size, const int upper_bound_w, const int upper_bound_h,
const int pad_x, const int pad_y, const int stride_x, const int stride_y)
@@ -70,7 +70,7 @@ __kernel void pooling_layer_2(
#ifdef POOL_AVG
,
int2 max_dims, int2 strides, int2 paddings
-#endif
+#endif /* POOL_AVG */
)
{
// Get pixels pointer
@@ -90,7 +90,7 @@ __kernel void pooling_layer_2(
// Divide by pool region in case of average pooling
#ifdef POOL_AVG
res *= calculate_avg_scale(2, max_dims.x, max_dims.y, paddings.x, paddings.y, strides.x, strides.y);
-#endif
+#endif /* POOL_AVG */
// Store result
*(__global DATA_TYPE *)output.ptr = res;
@@ -127,7 +127,7 @@ __kernel void pooling_layer_3(
#ifdef POOL_AVG
,
int2 max_dims, int2 strides, int2 paddings
-#endif
+#endif /* POOL_AVG */
)
{
// Get pixels pointer
@@ -150,7 +150,7 @@ __kernel void pooling_layer_3(
// Divide by pool region in case of average pooling
#ifdef POOL_AVG
res *= calculate_avg_scale(3, max_dims.x, max_dims.y, paddings.x, paddings.y, strides.x, strides.y);
-#endif
+#endif /* POOL_AVG */
// Store result
*(__global DATA_TYPE *)output.ptr = res;
@@ -187,7 +187,7 @@ __kernel void pooling_layer_7(
#ifdef POOL_AVG
,
int2 max_dims, int2 strides, int2 paddings
-#endif
+#endif /* POOL_AVG */
)
{
// Get pixels pointer
@@ -221,9 +221,9 @@ __kernel void pooling_layer_7(
// Set last element
#ifdef POOL_AVG
data0.s7 = 0;
-#else
+#else /* POOL_AVG */
data0.s7 = data0.s6;
-#endif
+#endif /* POOL_AVG */
// Reduce result
VEC_DATA_TYPE(DATA_TYPE, 4)
@@ -235,7 +235,7 @@ __kernel void pooling_layer_7(
// Divide by pool region in case of average pooling
#ifdef POOL_AVG
res *= calculate_avg_scale(7, max_dims.x, max_dims.y, paddings.x, paddings.y, strides.x, strides.y);
-#endif
+#endif /* POOL_AVG */
// Store result
*(__global DATA_TYPE *)output.ptr = res;
diff --git a/src/core/CL/cl_kernels/scharr_filter.cl b/src/core/CL/cl_kernels/scharr_filter.cl
index ef9878c1a3..d9b5d07837 100644
--- a/src/core/CL/cl_kernels/scharr_filter.cl
+++ b/src/core/CL/cl_kernels/scharr_filter.cl
@@ -52,28 +52,28 @@ __kernel void scharr3x3(
#ifdef GRAD_X
,
IMAGE_DECLARATION(dst_gx)
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
,
IMAGE_DECLARATION(dst_gy)
-#endif
+#endif /* GRAD_Y */
)
{
Image src = CONVERT_TO_IMAGE_STRUCT(src);
#ifdef GRAD_X
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
// Output pixels
#ifdef GRAD_X
short8 gx = (short8)0;
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
short8 gy = (short8)0;
-#endif
+#endif /* GRAD_Y */
// Row0
uchar16 temp = vload16(0, offset(&src, -1, -1));
@@ -83,12 +83,12 @@ __kernel void scharr3x3(
#ifdef GRAD_X
gx += left * (short8)(-3);
gx += right * (short8)(+3);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
gy += left * (short8)(-3);
gy += middle * (short8)(-10);
gy += right * (short8)(-3);
-#endif
+#endif /* GRAD_Y */
// Row1
temp = vload16(0, offset(&src, -1, 0));
@@ -97,7 +97,7 @@ __kernel void scharr3x3(
#ifdef GRAD_X
gx += left * (short8)(-10);
gx += right * (short8)(+10);
-#endif
+#endif /* GRAD_X */
// Row2
temp = vload16(0, offset(&src, -1, 1));
@@ -107,18 +107,18 @@ __kernel void scharr3x3(
#ifdef GRAD_X
gx += left * (short8)(-3);
gx += right * (short8)(+3);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
gy += left * (short8)(+3);
gy += middle * (short8)(+10);
gy += right * (short8)(+3);
-#endif
+#endif /* GRAD_Y */
// Store results
#ifdef GRAD_X
vstore8(gx, 0, ((__global short *)dst_gx.ptr));
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
vstore8(gy, 0, ((__global short *)dst_gy.ptr));
-#endif
+#endif /* GRAD_Y */
}
diff --git a/src/core/CL/cl_kernels/sobel_filter.cl b/src/core/CL/cl_kernels/sobel_filter.cl
index 4eb0eef770..fc2b0eed92 100644
--- a/src/core/CL/cl_kernels/sobel_filter.cl
+++ b/src/core/CL/cl_kernels/sobel_filter.cl
@@ -56,28 +56,28 @@ __kernel void sobel3x3(
#ifdef GRAD_X
,
IMAGE_DECLARATION(dst_gx)
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
,
IMAGE_DECLARATION(dst_gy)
-#endif
+#endif /* GRAD_Y */
)
{
Image src = CONVERT_TO_IMAGE_STRUCT(src);
#ifdef GRAD_X
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
// Output pixels
#ifdef GRAD_X
short8 gx = (short8)0;
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
short8 gy = (short8)0;
-#endif
+#endif /* GRAD_Y */
// Row0
uchar16 temp = vload16(0, offset(&src, -1, -1));
@@ -87,12 +87,12 @@ __kernel void sobel3x3(
#ifdef GRAD_X
gx += left * (short8)(-1);
gx += right * (short8)(+1);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
gy += left * (short8)(-1);
gy += middle * (short8)(-2);
gy += right * (short8)(-1);
-#endif
+#endif /* GRAD_Y */
// Row1
temp = vload16(0, offset(&src, -1, 0));
@@ -101,7 +101,7 @@ __kernel void sobel3x3(
#ifdef GRAD_X
gx += left * (short8)(-2);
gx += right * (short8)(+2);
-#endif
+#endif /* GRAD_X */
// Row2
temp = vload16(0, offset(&src, -1, 1));
@@ -111,20 +111,20 @@ __kernel void sobel3x3(
#ifdef GRAD_X
gx += left * (short8)(-1);
gx += right * (short8)(+1);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
gy += left * (short8)(+1);
gy += middle * (short8)(+2);
gy += right * (short8)(+1);
-#endif
+#endif /* GRAD_Y */
// Store results
#ifdef GRAD_X
vstore8(gx, 0, ((__global short *)dst_gx.ptr));
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
vstore8(gy, 0, ((__global short *)dst_gy.ptr));
-#endif
+#endif /* GRAD_Y */
}
/**********************************************/
@@ -261,20 +261,20 @@ __kernel void sobel_separable1x5(
#ifdef GRAD_X
,
IMAGE_DECLARATION(dst_gx)
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
,
IMAGE_DECLARATION(dst_gy)
-#endif
+#endif /* GRAD_Y */
)
{
Image src = CONVERT_TO_IMAGE_STRUCT(src);
#ifdef GRAD_X
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
// Output pixels
short16 gx_gy = sobel1x5(&src,
@@ -284,10 +284,10 @@ __kernel void sobel_separable1x5(
// Store result in dst
#ifdef GRAD_X
vstore8(gx_gy.s01234567, 0, ((__global short *)dst_gx.ptr));
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
vstore8(gx_gy.s89ABCDEF, 0, ((__global short *)dst_gy.ptr));
-#endif
+#endif /* GRAD_Y */
}
/** Apply a 5x1 convolution matrix to two single channel S16 input temporary images
@@ -326,32 +326,32 @@ __kernel void sobel_separable5x1(
#ifdef GRAD_X
IMAGE_DECLARATION(src_x),
IMAGE_DECLARATION(dst_gx),
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
IMAGE_DECLARATION(src_y),
IMAGE_DECLARATION(dst_gy),
-#endif
+#endif /* GRAD_Y */
int dummy)
{
#ifdef GRAD_X
Image src_x = CONVERT_TO_IMAGE_STRUCT(src_x);
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image src_y = CONVERT_TO_IMAGE_STRUCT(src_y);
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
#ifdef GRAD_X
short8 gx = sobel5x1(&src_x,
1, 4, 6, 4, 1);
vstore8(gx, 0, ((__global short *)dst_gx.ptr));
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
short8 gy = sobel5x1(&src_y,
-1, -2, 0, 2, 1);
vstore8(gy, 0, ((__global short *)dst_gy.ptr));
-#endif
+#endif /* GRAD_Y */
}
/**********************************************/
@@ -444,20 +444,20 @@ __kernel void sobel_separable1x7(
#ifdef GRAD_X
,
IMAGE_DECLARATION(dst_gx)
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
,
IMAGE_DECLARATION(dst_gy)
-#endif
+#endif /* GRAD_Y */
)
{
Image src = CONVERT_TO_IMAGE_STRUCT(src);
#ifdef GRAD_X
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
int8 gx = (int8)0;
int8 gy = (int8)0;
@@ -466,10 +466,10 @@ __kernel void sobel_separable1x7(
// Store result in dst
#ifdef GRAD_X
vstore8(gx, 0, ((__global int *)dst_gx.ptr));
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
vstore8(gy, 0, ((__global int *)dst_gy.ptr));
-#endif
+#endif /* GRAD_Y */
}
/** Apply a 7x1 convolution matrix to two single channel S16 input temporary images and output two single channel S16 images and leave the borders undefined.
@@ -507,33 +507,33 @@ __kernel void sobel_separable7x1(
#ifdef GRAD_X
IMAGE_DECLARATION(src_x),
IMAGE_DECLARATION(dst_gx),
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
IMAGE_DECLARATION(src_y),
IMAGE_DECLARATION(dst_gy),
-#endif
+#endif /* GRAD_Y */
int dummy)
{
#ifdef GRAD_X
Image src_x = CONVERT_TO_IMAGE_STRUCT(src_x);
Image dst_gx = CONVERT_TO_IMAGE_STRUCT(dst_gx);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
Image src_y = CONVERT_TO_IMAGE_STRUCT(src_y);
Image dst_gy = CONVERT_TO_IMAGE_STRUCT(dst_gy);
-#endif
+#endif /* GRAD_Y */
// Output pixels
#ifdef GRAD_X
int8 gx = 0;
SOBEL7x1(&src_x, gx, Y);
vstore8(gx, 0, (__global int *)dst_gx.ptr);
-#endif
+#endif /* GRAD_X */
#ifdef GRAD_Y
int8 gy = 0;
SOBEL7x1(&src_y, gy, X);
vstore8(gy, 0, (__global int *)dst_gy.ptr);
-#endif
+#endif /* GRAD_Y */
}
/**********************************************/
diff --git a/src/core/CL/cl_kernels/softmax_layer.cl b/src/core/CL/cl_kernels/softmax_layer.cl
index a29aea4fae..113fc762a6 100644
--- a/src/core/CL/cl_kernels/softmax_layer.cl
+++ b/src/core/CL/cl_kernels/softmax_layer.cl
@@ -23,7 +23,7 @@
*/
#include "helpers.h"
-#if defined(FIXED_POINT_POSITION)
+#ifdef FIXED_POINT_POSITION
#include "fixed_point.h"
#define MAX_OP(x, y, type, size) MAX_OP_EXPAND(x, y, type, size)
@@ -37,7 +37,7 @@
#define MINVAL MIN_VAL(DATA_TYPE)
#define SELECT_DATA_TYPE EXPAND(DATA_TYPE)
-#else
+#else /* FIXED_POINT_POSITION */
#define MAX_OP(x, y, type, size) max((x), (y))
#define ADD_OP(x, y, type, size) ((x) + (y))
@@ -45,15 +45,15 @@
#define DIV_OP(x, y, type, size) ((x) / (y))
#define EXP_OP(x, type, size) exp((x))
-#if defined USE_F16
+#ifdef USE_F16
#define MINVAL -HALF_MAX
#define SELECT_DATA_TYPE short
-#else
+#else /* USE_F16 */
#define MINVAL -FLT_MAX
#define SELECT_DATA_TYPE int
-#endif
+#endif /* USE_F16 */
-#endif
+#endif /* FIXED_POINT_POSITION */
__constant VEC_DATA_TYPE(DATA_TYPE, 16) type_min = (VEC_DATA_TYPE(DATA_TYPE, 16))(MINVAL);
__constant uint16 idx16 = (uint16)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
@@ -99,14 +99,14 @@ __kernel void softmax_layer_max(
max_val = MAX_OP(data, max_val, DATA_TYPE, 16);
}
-#if defined NON_MULTIPLE_OF_16
+#ifdef NON_MULTIPLE_OF_16
// Handle non multiple of 16
VEC_DATA_TYPE(DATA_TYPE, 16)
data = vload16(0, (__global DATA_TYPE *)offset(&src, width4 << 4, 0));
VEC_DATA_TYPE(SELECT_DATA_TYPE, 16)
widx = CONVERT(((uint16)(width4 << 4) + idx16) < width, VEC_DATA_TYPE(SELECT_DATA_TYPE, 16));
max_val = MAX_OP(max_val, select(type_min, data, widx), DATA_TYPE, 16);
-#endif
+#endif /* NON_MULTIPLE_OF_16 */
// Perform max reduction
max_val.s01234567 = MAX_OP(max_val.s01234567, max_val.s89ABCDEF, DATA_TYPE, 8);
@@ -182,7 +182,7 @@ __kernel void softmax_layer_shift_exp_sum(
sum1D = ADD_OP(sum1D, data, DATA_TYPE, 16);
}
-#if defined NON_MULTIPLE_OF_16
+#ifdef NON_MULTIPLE_OF_16
// Handle non multiple of 16
VEC_DATA_TYPE(DATA_TYPE, 16)
data = vload16(0, (__global DATA_TYPE *)offset(&src, width4 << 4, 0));
@@ -193,7 +193,7 @@ __kernel void softmax_layer_shift_exp_sum(
data = select(0, data, widx);
vstore16(data, 0, (__global DATA_TYPE *)offset(&dst, width4 << 4, 0));
sum1D = ADD_OP(sum1D, data, DATA_TYPE, 16);
-#endif
+#endif /* NON_MULTIPLE_OF_16 */
// Perform min/max reduction
sum1D.s01234567 = ADD_OP(sum1D.s01234567, sum1D.s89ABCDEF, DATA_TYPE, 8);
diff --git a/src/core/CL/cl_kernels/transpose.cl b/src/core/CL/cl_kernels/transpose.cl
index c30158f280..daa0129e7d 100644
--- a/src/core/CL/cl_kernels/transpose.cl
+++ b/src/core/CL/cl_kernels/transpose.cl
@@ -98,7 +98,7 @@
#ifndef DATA_TYPE_IN_BYTES
#error DATA_TYPE_IN_BYTES not set for the transpose OpenCL kernel
-#endif
+#endif /* not DATA_TYPE_IN_BYTES */
#if DATA_TYPE_IN_BYTES == 4
#define DATA_TYPE uint
@@ -118,9 +118,9 @@
#define VLOAD(x, y) vload16(x, y)
#define VSTORE(x, y, z) vstore16(x, y, z)
#define BLOCK_SIZE 16
-#else
+#else /* switch DATA_TYPE_IN_BYTES */
#error DATA_TYPE_IN_BYTES not supported for transpose
-#endif
+#endif /* switch DATA_TYPE_IN_BYTES */
/** This OpenCL kernel computes the matrix transposition of input matrix
*
diff --git a/src/core/NEON/kernels/NEAccumulateKernel.cpp b/src/core/NEON/kernels/NEAccumulateKernel.cpp
index e5b933a781..6e54dd64a3 100644
--- a/src/core/NEON/kernels/NEAccumulateKernel.cpp
+++ b/src/core/NEON/kernels/NEAccumulateKernel.cpp
@@ -131,7 +131,7 @@ void NEAccumulateWeightedFP16Kernel::run(const Window &window)
},
input, accum);
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace
{
diff --git a/src/core/NEON/kernels/NEBox3x3Kernel.cpp b/src/core/NEON/kernels/NEBox3x3Kernel.cpp
index d7e6d73cd7..551c903dd9 100644
--- a/src/core/NEON/kernels/NEBox3x3Kernel.cpp
+++ b/src/core/NEON/kernels/NEBox3x3Kernel.cpp
@@ -103,7 +103,7 @@ void NEBox3x3FP16Kernel::run(const Window &window)
},
input, output);
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
BorderSize NEBox3x3Kernel::border_size() const
{
diff --git a/src/core/NEON/kernels/NECannyEdgeKernel.cpp b/src/core/NEON/kernels/NECannyEdgeKernel.cpp
index 85a2cd5855..26df6f6b8b 100644
--- a/src/core/NEON/kernels/NECannyEdgeKernel.cpp
+++ b/src/core/NEON/kernels/NECannyEdgeKernel.cpp
@@ -787,7 +787,7 @@ void NEGradientFP16Kernel::configure(const ITensor *gx, const ITensor *gy, ITens
INEKernel::configure(win);
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace
{
diff --git a/src/core/NEON/kernels/NEGEMMMatrixAdditionKernel.cpp b/src/core/NEON/kernels/NEGEMMMatrixAdditionKernel.cpp
index 7d659ab2e6..57d2807b8a 100644
--- a/src/core/NEON/kernels/NEGEMMMatrixAdditionKernel.cpp
+++ b/src/core/NEON/kernels/NEGEMMMatrixAdditionKernel.cpp
@@ -89,7 +89,7 @@ void matrix_addition_f16(const ITensor *input, ITensor *output, const Window &wi
},
in, out);
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
void matrix_addition_qs8(const ITensor *input, ITensor *output, const Window &window, float beta)
{
@@ -142,7 +142,7 @@ void NEGEMMMatrixAdditionKernel::configure(const ITensor *input, ITensor *output
#ifdef ARM_COMPUTE_ENABLE_FP16
_func = &matrix_addition_f16;
break;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
default:
ARM_COMPUTE_ERROR("Data type not supported");
break;
diff --git a/src/core/NEON/kernels/NEGEMMMatrixMultiplyKernel.cpp b/src/core/NEON/kernels/NEGEMMMatrixMultiplyKernel.cpp
index 101c5c8132..bff16ec329 100644
--- a/src/core/NEON/kernels/NEGEMMMatrixMultiplyKernel.cpp
+++ b/src/core/NEON/kernels/NEGEMMMatrixMultiplyKernel.cpp
@@ -244,7 +244,7 @@ void vector_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(vec_a)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + in_b_stride)));
-#endif
+#endif /* __arm__ */
auto vec_a_end_addr = vec_a + num_elems_vec_a;
for(; vec_a <= (vec_a_end_addr - 4);)
@@ -267,7 +267,7 @@ void vector_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 2 * in_b_stride)));
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 3 * in_b_stride)));
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 4 * in_b_stride)));
-#endif
+#endif /* __arm__ */
acc0 = vmlaq_lane_f32(acc0, b00, a0l, 0);
acc1 = vmlaq_lane_f32(acc1, b01, a0l, 0);
@@ -527,7 +527,7 @@ void matrix_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_a0)));
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b0)));
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b1)));
-#endif
+#endif /* __arm__ */
auto mtx_b0_end_addr = mtx_b0 + num_elems_matrix_b_x;
for(; mtx_b0 <= (mtx_b0_end_addr - 32);)
@@ -546,7 +546,7 @@ void matrix_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_a0)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b0)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b1)));
-#endif
+#endif /* __arm__ */
// 4x4 block 0
acc00 = vmlaq_f32(acc00, b00, a0);
@@ -637,7 +637,7 @@ void matrix_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_a0)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b0)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b1)));
-#endif
+#endif /* __arm__ */
// 4x4 block 0
acc00 = vmlaq_f32(acc00, b00, a0);
@@ -728,7 +728,7 @@ void matrix_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*2]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_a0)));
asm volatile("PLD [%0, #128*2]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b0)));
asm volatile("PLD [%0, #128*2]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b1)));
-#endif
+#endif /* __arm__ */
// 4x4 block 0
acc00 = vmlaq_f32(acc00, b00, a0);
acc10 = vmlaq_f32(acc10, b00, a1);
@@ -915,9 +915,9 @@ void matrix_matrix_multiply_f16(const ITensor *input0, const ITensor *input1, IT
vst1q_f16(mtx_out + 3 * out_stride, c.val[3]);
},
ina, inb, out);
-#else
+#else /* ARM_COMPUTE_ENABLE_FP16 */
ARM_COMPUTE_ERROR("Not implemented");
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
}
template <bool multiply_alpha>
@@ -1028,7 +1028,7 @@ void matrix_matrix_multiply_qs8(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*2]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_a0)));
asm volatile("PLD [%0, #128*2]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b0)));
asm volatile("PLD [%0, #128*2]" ::"r"(reinterpret_cast<const uint8_t *>(mtx_b1)));
-#endif
+#endif /* __arm__ */
// Second accumulation
acc00_qs16 = vqmlal_qs8(acc00_qs16, b02, a4, fixed_point_position);
diff --git a/src/core/NEON/kernels/NEHarrisCornersKernel.cpp b/src/core/NEON/kernels/NEHarrisCornersKernel.cpp
index 585676bb87..d44f4ce3b8 100644
--- a/src/core/NEON/kernels/NEHarrisCornersKernel.cpp
+++ b/src/core/NEON/kernels/NEHarrisCornersKernel.cpp
@@ -360,7 +360,7 @@ void NEHarrisScoreFP16Kernel<block_size>::configure(const IImage *input1, const
INEKernel::configure(win);
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
template class arm_compute::NEHarrisScoreKernel<3>;
template class arm_compute::NEHarrisScoreKernel<5>;
diff --git a/src/core/NEON/kernels/NEIm2ColKernel.cpp b/src/core/NEON/kernels/NEIm2ColKernel.cpp
index 99daa2e5e7..8c9d12c57c 100644
--- a/src/core/NEON/kernels/NEIm2ColKernel.cpp
+++ b/src/core/NEON/kernels/NEIm2ColKernel.cpp
@@ -305,7 +305,7 @@ void NEIm2ColKernel::configure(const ITensor *input, ITensor *output, const Size
case DataType::F16:
_func = &NEIm2ColKernel::run_reduced<float16_t>;
break;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
case DataType::QS8:
_func = &NEIm2ColKernel::run_reduced<qint8_t>;
break;
@@ -325,7 +325,7 @@ void NEIm2ColKernel::configure(const ITensor *input, ITensor *output, const Size
case DataType::F16:
_func = ((pad_x == 0) && (pad_y == 0)) ? &NEIm2ColKernel::run_generic<float16_t, false> : &NEIm2ColKernel::run_generic<float16_t, true>;
break;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
case DataType::QS8:
_func = ((pad_x == 0) && (pad_y == 0)) ? &NEIm2ColKernel::run_generic<qint8_t, false> : &NEIm2ColKernel::run_generic<qint8_t, true>;
break;
diff --git a/src/core/NEON/kernels/NELocallyConnectedMatrixMultiplyKernel.cpp b/src/core/NEON/kernels/NELocallyConnectedMatrixMultiplyKernel.cpp
index ab84efbf23..895799c6ca 100644
--- a/src/core/NEON/kernels/NELocallyConnectedMatrixMultiplyKernel.cpp
+++ b/src/core/NEON/kernels/NELocallyConnectedMatrixMultiplyKernel.cpp
@@ -89,7 +89,7 @@ void vector_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(vec_a)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b)));
asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + in_b_stride)));
-#endif
+#endif /* __arm__ */
const float *vec_a_end_addr = vec_a + num_elems_vec_a;
@@ -113,7 +113,7 @@ void vector_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, IT
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 2 * in_b_stride)));
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 3 * in_b_stride)));
asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 4 * in_b_stride)));
-#endif
+#endif /* __arm __ */
acc0 = vmlaq_lane_f32(acc0, b00, a0l, 0);
acc1 = vmlaq_lane_f32(acc1, b01, a0l, 0);
diff --git a/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp b/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp
index a874d219d7..599dad6c70 100644
--- a/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp
+++ b/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp
@@ -428,7 +428,7 @@ template class arm_compute::NEMagnitudePhaseFP16Kernel<MagnitudeType::L1NORM, Ph
template class arm_compute::NEMagnitudePhaseFP16Kernel<MagnitudeType::L2NORM, PhaseType::SIGNED>;
template class arm_compute::NEMagnitudePhaseFP16Kernel<MagnitudeType::L1NORM, PhaseType::UNSIGNED>;
template class arm_compute::NEMagnitudePhaseFP16Kernel<MagnitudeType::L2NORM, PhaseType::UNSIGNED>;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace
{
diff --git a/src/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.cpp b/src/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.cpp
index 1826c474f7..ece7b9a10f 100644
--- a/src/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.cpp
+++ b/src/core/NEON/kernels/NENonMaximaSuppression3x3Kernel.cpp
@@ -224,7 +224,7 @@ void NENonMaximaSuppression3x3FP16Kernel::configure(const ITensor *input, ITenso
INEKernel::configure(win);
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace
{
diff --git a/src/runtime/NEON/functions/NEGEMM.cpp b/src/runtime/NEON/functions/NEGEMM.cpp
index 730735590d..73c5f548c9 100644
--- a/src/runtime/NEON/functions/NEGEMM.cpp
+++ b/src/runtime/NEON/functions/NEGEMM.cpp
@@ -90,7 +90,7 @@ void NEGEMM::configure(const ITensor *a, const ITensor *b, const ITensor *c, ITe
shape_tmp_b.set(1, std::ceil(b->info()->dimension(0) / 8.0f));
break;
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
case DataType::QS8:
{
shape_tmp_b.set(0, b->info()->dimension(1) * 16);
diff --git a/src/runtime/Scheduler.cpp b/src/runtime/Scheduler.cpp
index a131928293..505c4a384c 100644
--- a/src/runtime/Scheduler.cpp
+++ b/src/runtime/Scheduler.cpp
@@ -26,13 +26,13 @@
#include "arm_compute/core/Error.h"
#if ARM_COMPUTE_CPP_SCHEDULER
#include "arm_compute/runtime/CPP/CPPScheduler.h"
-#endif
+#endif /* ARM_COMPUTE_CPP_SCHEDULER */
#include "arm_compute/runtime/SingleThreadScheduler.h"
#if ARM_COMPUTE_OPENMP_SCHEDULER
#include "arm_compute/runtime/OMP/OMPScheduler.h"
-#endif
+#endif /* ARM_COMPUTE_OPENMP_SCHEDULER */
using namespace arm_compute;
@@ -42,9 +42,9 @@ Scheduler::Type Scheduler::_scheduler_type = Scheduler::Type::OMP;
Scheduler::Type Scheduler::_scheduler_type = Scheduler::Type::CPP;
#elif ARM_COMPUTE_CPP_SCHEDULER && ARM_COMPUTE_OPENMP_SCHEDULER
Scheduler::Type Scheduler::_scheduler_type = Scheduler::Type::CPP;
-#else
+#else /* ARM_COMPUTE_*_SCHEDULER */
Scheduler::Type Scheduler::_scheduler_type = Scheduler::Type::ST;
-#endif
+#endif /* ARM_COMPUTE_*_SCHEDULER */
void Scheduler::set(Type t)
{
@@ -64,17 +64,17 @@ bool Scheduler::is_available(Type t)
{
#if ARM_COMPUTE_CPP_SCHEDULER
return true;
-#else
+#else /* ARM_COMPUTE_CPP_SCHEDULER */
return false;
-#endif
+#endif /* ARM_COMPUTE_CPP_SCHEDULER */
}
case Type::OMP:
{
#if ARM_COMPUTE_OPENMP_SCHEDULER
return true;
-#else
+#else /* ARM_COMPUTE_OPENMP_SCHEDULER */
return false;
-#endif
+#endif /* ARM_COMPUTE_OPENMP_SCHEDULER */
}
case Type::CUSTOM:
{
@@ -105,18 +105,18 @@ IScheduler &Scheduler::get()
{
#if ARM_COMPUTE_CPP_SCHEDULER
return CPPScheduler::get();
-#else
+#else /* ARM_COMPUTE_CPP_SCHEDULER */
ARM_COMPUTE_ERROR("Recompile with cppthreads=1 to use C++11 scheduler.");
-#endif
+#endif /* ARM_COMPUTE_CPP_SCHEDULER */
break;
}
case Type::OMP:
{
#if ARM_COMPUTE_OPENMP_SCHEDULER
return OMPScheduler::get();
-#else
+#else /* ARM_COMPUTE_OPENMP_SCHEDULER */
ARM_COMPUTE_ERROR("Recompile with openmp=1 to use openmp scheduler.");
-#endif
+#endif /* ARM_COMPUTE_OPENMP_SCHEDULER */
break;
}
case Type::CUSTOM:
diff --git a/tests/CL/CLAccessor.h b/tests/CL/CLAccessor.h
index 21db3ee23d..e6d226c89b 100644
--- a/tests/CL/CLAccessor.h
+++ b/tests/CL/CLAccessor.h
@@ -133,4 +133,4 @@ inline void *CLAccessor::operator()(const Coordinates &coord)
} // cl
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_CL_CLACCESSOR_H__ */
diff --git a/tests/Globals.h b/tests/Globals.h
index a44d7ce83b..823b5d6df5 100644
--- a/tests/Globals.h
+++ b/tests/Globals.h
@@ -35,4 +35,4 @@ namespace test
extern std::unique_ptr<TensorLibrary> library;
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_GLOBALS_H__ */
diff --git a/tests/IAccessor.h b/tests/IAccessor.h
index 3c06dc36be..b4f2d213da 100644
--- a/tests/IAccessor.h
+++ b/tests/IAccessor.h
@@ -86,4 +86,4 @@ inline IAccessor::~IAccessor()
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_IACCESSOR_H__ */
diff --git a/tests/NEON/Helper.h b/tests/NEON/Helper.h
index 0651c9c709..f9774c774c 100644
--- a/tests/NEON/Helper.h
+++ b/tests/NEON/Helper.h
@@ -49,4 +49,4 @@ Array<T> create_array(const std::vector<T> &v)
} // namespace neon
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_NEON_HELPER_H__ */
diff --git a/tests/NEON/NEAccessor.h b/tests/NEON/NEAccessor.h
index be28c27d98..9afc300d99 100644
--- a/tests/NEON/NEAccessor.h
+++ b/tests/NEON/NEAccessor.h
@@ -121,4 +121,4 @@ inline void *NEAccessor::operator()(const Coordinates &coord)
} // namespace neon
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_NEON_NEACCESSOR_H__ */
diff --git a/tests/PaddingCalculator.h b/tests/PaddingCalculator.h
index 6906353a66..957abf5aaf 100644
--- a/tests/PaddingCalculator.h
+++ b/tests/PaddingCalculator.h
@@ -164,4 +164,4 @@ inline PaddingSize PaddingCalculator::required_padding(Option option) const
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_PADDING_CALCULATOR_H__ */
diff --git a/tests/ProgramOptions.h b/tests/ProgramOptions.h
index b61ae01b30..0b28355aa6 100644
--- a/tests/ProgramOptions.h
+++ b/tests/ProgramOptions.h
@@ -98,4 +98,4 @@ bool ProgramOptions::get(const std::string &name, T &value) const
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_PROGRAM_OPTIONS_H__ */
diff --git a/tests/RawTensor.h b/tests/RawTensor.h
index 87ceb438e8..2480917c38 100644
--- a/tests/RawTensor.h
+++ b/tests/RawTensor.h
@@ -156,4 +156,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_RAW_TENSOR_H__ */
diff --git a/tests/TensorCache.h b/tests/TensorCache.h
index b4f7b59e15..4bb059e203 100644
--- a/tests/TensorCache.h
+++ b/tests/TensorCache.h
@@ -115,4 +115,4 @@ inline RawTensor &TensorCache::add(std::tuple<const std::string &, Format, Chann
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_TENSOR_CACHE_H__ */
diff --git a/tests/TensorLibrary.cpp b/tests/TensorLibrary.cpp
index 21bb4ecd73..479c3e5f04 100644
--- a/tests/TensorLibrary.cpp
+++ b/tests/TensorLibrary.cpp
@@ -186,13 +186,15 @@ RawTensor load_ppm(const std::string &path)
}
} // namespace
-TensorLibrary::TensorLibrary(std::string path)
- : _library_path(std::move(path)), _seed{ std::random_device()() }
+TensorLibrary::TensorLibrary(std::string path) //NOLINT
+ : _library_path(std::move(path)),
+ _seed{ std::random_device()() }
{
}
-TensorLibrary::TensorLibrary(std::string path, std::random_device::result_type seed)
- : _library_path(std::move(path)), _seed{ seed }
+TensorLibrary::TensorLibrary(std::string path, std::random_device::result_type seed) //NOLINT
+ : _library_path(std::move(path)),
+ _seed{ seed }
{
}
@@ -342,9 +344,9 @@ RawTensor TensorLibrary::load_image(const std::string &name) const
{
#ifdef _WIN32
const std::string image_path = ("\\images\\");
-#else
+#else /* _WIN32 */
const std::string image_path = ("/images/");
-#endif
+#endif /* _WIN32 */
const std::string path = _library_path + image_path + name;
const std::string extension = path.substr(path.find_last_of('.') + 1);
diff --git a/tests/TensorLibrary.h b/tests/TensorLibrary.h
index 69b2381171..6c079b6872 100644
--- a/tests/TensorLibrary.h
+++ b/tests/TensorLibrary.h
@@ -45,7 +45,7 @@
#if ARM_COMPUTE_ENABLE_FP16
#include <arm_fp16.h> // needed for float16_t
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace arm_compute
{
@@ -370,7 +370,7 @@ private:
mutable TensorCache _cache{};
mutable std::mutex _format_lock{};
mutable std::mutex _channel_lock{};
- std::string _library_path;
+ const std::string _library_path;
std::random_device::result_type _seed;
};
@@ -600,7 +600,7 @@ void TensorLibrary::fill_tensor_uniform(T &&tensor, std::random_device::result_t
fill(tensor, distribution_f16, seed_offset);
break;
}
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
case DataType::F32:
{
ARM_COMPUTE_ERROR_ON(!(std::is_same<float, D>::value));
@@ -632,9 +632,9 @@ void TensorLibrary::fill_layer_data(T &&tensor, std::string name) const
{
#ifdef _WIN32
const std::string path_separator("\\");
-#else
+#else /* _WIN32 */
const std::string path_separator("/");
-#endif
+#endif /* _WIN32 */
const std::string path = _library_path + path_separator + name;
@@ -662,4 +662,4 @@ void TensorLibrary::fill_layer_data(T &&tensor, std::string name) const
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_TENSOR_LIBRARY_H__ */
diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h
index f5915c474a..4fb3b64d42 100644
--- a/tests/TypePrinter.h
+++ b/tests/TypePrinter.h
@@ -464,4 +464,4 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BorderSize &border)
return os;
}
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_TYPE_PRINTER_H__ */
diff --git a/tests/TypeReader.h b/tests/TypeReader.h
index 82eb9e42cf..2be76ba63f 100644
--- a/tests/TypeReader.h
+++ b/tests/TypeReader.h
@@ -64,4 +64,4 @@ inline ::std::istream &operator>>(::std::istream &is, BorderMode &mode)
return is;
}
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_TYPE_READER_H__ */
diff --git a/tests/Types.h b/tests/Types.h
index 2cb69ff04e..cb9b0b9d5a 100644
--- a/tests/Types.h
+++ b/tests/Types.h
@@ -34,4 +34,4 @@ enum class FixedPointOp
RECIPROCAL /**< Reciprocal */
};
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_TYPES_H__ */
diff --git a/tests/UserConfiguration.h b/tests/UserConfiguration.h
index dad0960bdb..815da04810 100644
--- a/tests/UserConfiguration.h
+++ b/tests/UserConfiguration.h
@@ -133,4 +133,4 @@ UserConfiguration::Option<T>::operator T() const
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_USER_CONFIGURATION_H__ */
diff --git a/tests/Utils.h b/tests/Utils.h
index 8d5046da34..ad45bffe6e 100644
--- a/tests/Utils.h
+++ b/tests/Utils.h
@@ -40,9 +40,9 @@
#include <string>
#include <type_traits>
-#if ARM_COMPUTE_ENABLE_FP16
+#ifdef ARM_COMPUTE_ENABLE_FP16
#include <arm_fp16.h> // needed for float16_t
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace arm_compute
{
@@ -102,7 +102,7 @@ template <> struct promote<int32_t> { using type = int64_t; };
template <> struct promote<float> { using type = float; };
#ifdef ARM_COMPUTE_ENABLE_FP16
template <> struct promote<float16_t> { using type = float16_t; };
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
template <typename T>
@@ -417,4 +417,4 @@ inline T create_tensor(const TensorShape &shape, DataType data_type, int num_cha
}
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_UTILS_H__ */
diff --git a/tests/benchmark/Datasets.h b/tests/benchmark/Datasets.h
index e7bfb6f10f..cb45b50589 100644
--- a/tests/benchmark/Datasets.h
+++ b/tests/benchmark/Datasets.h
@@ -76,4 +76,4 @@ void DataSetArgs(::benchmark::internal::Benchmark *b)
}
}
}
-#endif
+#endif /* __ARM_COMPUTE_TEST_BENCHMARK_DATASETS_H__ */
diff --git a/tests/benchmark/Instrument.h b/tests/benchmark/Instrument.h
index 39b0088670..5034471091 100644
--- a/tests/benchmark/Instrument.h
+++ b/tests/benchmark/Instrument.h
@@ -104,4 +104,4 @@ Instrument::Measurement<T>::operator double() const
} // namespace benchmark
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_BENCHMARK_INSTRUMENT_H__ */
diff --git a/tests/benchmark/PMUCounter.h b/tests/benchmark/PMUCounter.h
index de45f319f6..c04b0e5760 100644
--- a/tests/benchmark/PMUCounter.h
+++ b/tests/benchmark/PMUCounter.h
@@ -68,4 +68,4 @@ private:
} // namespace benchmark
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_BENCHMARK_PMU_COUNTER_H__ */
diff --git a/tests/benchmark/PerformanceProgramOptions.h b/tests/benchmark/PerformanceProgramOptions.h
index 671e263bb2..e9c7a38b3f 100644
--- a/tests/benchmark/PerformanceProgramOptions.h
+++ b/tests/benchmark/PerformanceProgramOptions.h
@@ -42,4 +42,4 @@ public:
} // namespace performance
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_PERFORMANCE_PROGRAM_OPTIONS_H__ */
diff --git a/tests/benchmark/PerformanceUserConfiguration.h b/tests/benchmark/PerformanceUserConfiguration.h
index a140d404c8..daf85a4332 100644
--- a/tests/benchmark/PerformanceUserConfiguration.h
+++ b/tests/benchmark/PerformanceUserConfiguration.h
@@ -54,4 +54,4 @@ struct PerformanceUserConfiguration : public UserConfiguration
extern performance::PerformanceUserConfiguration user_config;
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_PERFORMANCE_PERFORMANCE_USER_CONFIGURATION_H__ */
diff --git a/tests/benchmark/Profiler.h b/tests/benchmark/Profiler.h
index 03922f4704..f2464949d0 100644
--- a/tests/benchmark/Profiler.h
+++ b/tests/benchmark/Profiler.h
@@ -73,4 +73,4 @@ private:
} // namespace benchmark
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_BENCHMARK_PROFILER_H__ */
diff --git a/tests/benchmark/WallClockTimer.h b/tests/benchmark/WallClockTimer.h
index cf6828e88d..85a8b86213 100644
--- a/tests/benchmark/WallClockTimer.h
+++ b/tests/benchmark/WallClockTimer.h
@@ -50,4 +50,4 @@ private:
} // namespace benchmark
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_BENCHMARK_WALL_CLOCK_TIMER_H__ */
diff --git a/tests/benchmark/main.cpp b/tests/benchmark/main.cpp
index 1b6bafb3a1..356490960c 100644
--- a/tests/benchmark/main.cpp
+++ b/tests/benchmark/main.cpp
@@ -34,7 +34,7 @@
#ifdef OPENCL
#include "arm_compute/runtime/CL/CLScheduler.h"
-#endif
+#endif /* OPENCL */
#include "arm_compute/runtime/Scheduler.h"
#include <iostream>
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
#ifdef OPENCL
arm_compute::CLScheduler::get().default_init();
-#endif
+#endif /* OPENCL */
std::cout << "Using " << user_config.threads << " CPU " << (user_config.threads == 1 ? "thread" : "threads") << "\n";
std::cout << "Seed: " << library->seed() << "\n";
diff --git a/tests/benchmark/system_tests/common/LeNet5.h b/tests/benchmark/system_tests/common/LeNet5.h
index cca1bbf3f3..a2d0cd577c 100644
--- a/tests/benchmark/system_tests/common/LeNet5.h
+++ b/tests/benchmark/system_tests/common/LeNet5.h
@@ -79,4 +79,4 @@ public:
} // namespace benchmark
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_BENCHMARK_LENET5_H__ */
diff --git a/tests/dataset/ActivationFunctionDataset.h b/tests/dataset/ActivationFunctionDataset.h
index 11e4baac78..bc0e011bde 100644
--- a/tests/dataset/ActivationFunctionDataset.h
+++ b/tests/dataset/ActivationFunctionDataset.h
@@ -29,7 +29,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -63,4 +63,4 @@ public:
};
} // namespace test
} // namespace arm_compute
-#endif //__ARM_COMPUTE_TEST_DATASET_ACTIVATION_FUNCTION_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_DATASET_ACTIVATION_FUNCTION_DATASET_H__ */
diff --git a/tests/dataset/ActivationLayerDataset.h b/tests/dataset/ActivationLayerDataset.h
index 9d7cffba14..ef6f382f97 100644
--- a/tests/dataset/ActivationLayerDataset.h
+++ b/tests/dataset/ActivationLayerDataset.h
@@ -35,7 +35,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
diff --git a/tests/dataset/BatchNormalizationLayerDataset.h b/tests/dataset/BatchNormalizationLayerDataset.h
index 4323b8fe93..f1ba212b97 100644
--- a/tests/dataset/BatchNormalizationLayerDataset.h
+++ b/tests/dataset/BatchNormalizationLayerDataset.h
@@ -35,7 +35,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
diff --git a/tests/dataset/BorderModeDataset.h b/tests/dataset/BorderModeDataset.h
index 37c7a5ba10..debf7bdf00 100644
--- a/tests/dataset/BorderModeDataset.h
+++ b/tests/dataset/BorderModeDataset.h
@@ -28,7 +28,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
#include <array>
@@ -56,9 +56,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _modes.size();
}
@@ -79,4 +79,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_BORDER_MODE_DATASET_H__ */
diff --git a/tests/dataset/ConvertPolicyDataset.h b/tests/dataset/ConvertPolicyDataset.h
index 697dba615b..bca033e515 100644
--- a/tests/dataset/ConvertPolicyDataset.h
+++ b/tests/dataset/ConvertPolicyDataset.h
@@ -30,7 +30,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -56,9 +56,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _policies.size();
}
@@ -79,4 +79,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_CONVERT_POLICY_DATASETS_H__ */
diff --git a/tests/dataset/ConvolutionLayerDataset.h b/tests/dataset/ConvolutionLayerDataset.h
index 402fae31ad..af04fa98ea 100644
--- a/tests/dataset/ConvolutionLayerDataset.h
+++ b/tests/dataset/ConvolutionLayerDataset.h
@@ -35,7 +35,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -269,4 +269,4 @@ public:
};
} // namespace test
} // namespace arm_compute
-#endif //__ARM_COMPUTE_TEST_DATASET_CONVOLUTION_LAYER_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_DATASET_CONVOLUTION_LAYER_DATASET_H__ */
diff --git a/tests/dataset/DataTypeDatasets.h b/tests/dataset/DataTypeDatasets.h
index 8c63857477..7198f79007 100644
--- a/tests/dataset/DataTypeDatasets.h
+++ b/tests/dataset/DataTypeDatasets.h
@@ -28,7 +28,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -55,9 +55,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _types.size();
}
@@ -190,4 +190,4 @@ public:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_DATA_TYPE_DATASET_H__ */
diff --git a/tests/dataset/FullyConnectedLayerDataset.h b/tests/dataset/FullyConnectedLayerDataset.h
index 53b7d022d7..cf43a6302a 100644
--- a/tests/dataset/FullyConnectedLayerDataset.h
+++ b/tests/dataset/FullyConnectedLayerDataset.h
@@ -34,7 +34,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -152,4 +152,4 @@ public:
};
} // namespace test
} // namespace arm_compute
-#endif //__ARM_COMPUTE_TEST_DATASET_FULLY_CONNECTED_LAYER_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_DATASET_FULLY_CONNECTED_LAYER_DATASET_H__ */
diff --git a/tests/dataset/GEMMDataset.h b/tests/dataset/GEMMDataset.h
index ddd4a3424f..ce05557231 100644
--- a/tests/dataset/GEMMDataset.h
+++ b/tests/dataset/GEMMDataset.h
@@ -38,7 +38,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
diff --git a/tests/dataset/GenericDataset.h b/tests/dataset/GenericDataset.h
index 4ca489bd82..48754fccf8 100644
--- a/tests/dataset/GenericDataset.h
+++ b/tests/dataset/GenericDataset.h
@@ -31,7 +31,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -58,9 +58,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _data.size();
}
@@ -94,4 +94,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif //__ARM_COMPUTE_TEST_DATASET_GENERIC_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_DATASET_GENERIC_DATASET_H__ */
diff --git a/tests/dataset/ImageDatasets.h b/tests/dataset/ImageDatasets.h
index 555227e83b..6aa25cf942 100644
--- a/tests/dataset/ImageDatasets.h
+++ b/tests/dataset/ImageDatasets.h
@@ -29,7 +29,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -56,9 +56,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _images.size();
}
@@ -109,7 +109,7 @@ public:
#ifdef INTERNAL_ONLY
: ImageDataset("1280x720.ppm", "1920x1080.ppm", "4160x3120.ppm")
// The 4k image is too large to distribute
-#else
+#else /* INTERNAL_ONLY */
: ImageDataset("1280x720.ppm", "1920x1080.ppm")
#endif /* INTERNAL_ONLY */
{
@@ -117,4 +117,4 @@ public:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_IMAGE_DATASETS_H__ */
diff --git a/tests/dataset/InterpolationPolicyDataset.h b/tests/dataset/InterpolationPolicyDataset.h
index e6062eae53..0f3184c81a 100644
--- a/tests/dataset/InterpolationPolicyDataset.h
+++ b/tests/dataset/InterpolationPolicyDataset.h
@@ -28,7 +28,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -54,9 +54,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _policies.size();
}
@@ -77,4 +77,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_INTERPOLATION_POLICY_DATASET_H__ */
diff --git a/tests/dataset/MatrixPatternDataset.h b/tests/dataset/MatrixPatternDataset.h
index d9f20c123b..050c4d9cfd 100644
--- a/tests/dataset/MatrixPatternDataset.h
+++ b/tests/dataset/MatrixPatternDataset.h
@@ -28,7 +28,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
#include <array>
@@ -56,9 +56,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _patterns.size();
}
@@ -79,4 +79,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif // __ARM_COMPUTE_TEST_MATRIX_PATTERN_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_MATRIX_PATTERN_DATASET_H__ */
diff --git a/tests/dataset/NonLinearFilterFunctionDataset.h b/tests/dataset/NonLinearFilterFunctionDataset.h
index 177887353b..a2db3239c3 100644
--- a/tests/dataset/NonLinearFilterFunctionDataset.h
+++ b/tests/dataset/NonLinearFilterFunctionDataset.h
@@ -28,7 +28,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
#include <array>
@@ -56,9 +56,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _functions.size();
}
@@ -79,4 +79,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_NON_LINEAR_FILTER_FUNCTION_DATASET_H__ */
diff --git a/tests/dataset/NormalizationLayerDataset.h b/tests/dataset/NormalizationLayerDataset.h
index 7234f41551..fc56694dc8 100644
--- a/tests/dataset/NormalizationLayerDataset.h
+++ b/tests/dataset/NormalizationLayerDataset.h
@@ -35,7 +35,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -96,4 +96,4 @@ public:
} // namespace test
} // namespace arm_compute
-#endif //__ARM_COMPUTE_TEST_DATASET_NORMALIZATION_LAYER_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_DATASET_NORMALIZATION_LAYER_DATASET_H__ */
diff --git a/tests/dataset/NormalizationTypeDataset.h b/tests/dataset/NormalizationTypeDataset.h
index bb1975c6c9..9edadbf8ab 100644
--- a/tests/dataset/NormalizationTypeDataset.h
+++ b/tests/dataset/NormalizationTypeDataset.h
@@ -28,7 +28,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -54,9 +54,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _types.size();
}
@@ -77,4 +77,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_NORMALIZATION_TYPE_DATASET_H__ */
diff --git a/tests/dataset/PoolingLayerDataset.h b/tests/dataset/PoolingLayerDataset.h
index 0a50a763ce..5cdece4f66 100644
--- a/tests/dataset/PoolingLayerDataset.h
+++ b/tests/dataset/PoolingLayerDataset.h
@@ -34,7 +34,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
diff --git a/tests/dataset/PoolingTypesDataset.h b/tests/dataset/PoolingTypesDataset.h
index c78a20b809..c8e34665f4 100644
--- a/tests/dataset/PoolingTypesDataset.h
+++ b/tests/dataset/PoolingTypesDataset.h
@@ -29,7 +29,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
diff --git a/tests/dataset/RoundingPolicyDataset.h b/tests/dataset/RoundingPolicyDataset.h
index c70872020b..0e7c7ba0c5 100644
--- a/tests/dataset/RoundingPolicyDataset.h
+++ b/tests/dataset/RoundingPolicyDataset.h
@@ -30,7 +30,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -56,9 +56,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _policies.size();
}
@@ -79,4 +79,4 @@ private:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_ROUNDING_POLICY_DATASETS_H__ */
diff --git a/tests/dataset/ShapeDatasets.h b/tests/dataset/ShapeDatasets.h
index 1e9e5f139a..71c786a641 100644
--- a/tests/dataset/ShapeDatasets.h
+++ b/tests/dataset/ShapeDatasets.h
@@ -30,7 +30,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -57,9 +57,9 @@ public:
/** Number of samples in the data set. */
#ifdef BOOST
boost::unit_test::data::size_t size() const
-#else
+#else /* BOOST */
unsigned int size() const
-#endif
+#endif /* BOOST */
{
return _shapes.size();
}
@@ -149,4 +149,4 @@ public:
};
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_SHAPE_DATASETS_H__ */
diff --git a/tests/dataset/ThresholdDataset.h b/tests/dataset/ThresholdDataset.h
index a2d76e3c48..e5a1e375ff 100644
--- a/tests/dataset/ThresholdDataset.h
+++ b/tests/dataset/ThresholdDataset.h
@@ -38,7 +38,7 @@
#ifdef BOOST
#include "boost_wrapper.h"
-#endif
+#endif /* BOOST */
namespace arm_compute
{
@@ -92,4 +92,4 @@ public:
} // namespace test
} // namespace arm_compute
-#endif //__ARM_COMPUTE_TEST_DATASET_THRESHOLD_DATASET_H__
+#endif /* __ARM_COMPUTE_TEST_DATASET_THRESHOLD_DATASET_H__ */
diff --git a/tests/validation/CL/ActivationLayer.cpp b/tests/validation/CL/ActivationLayer.cpp
index 5d266e60d2..7286b93485 100644
--- a/tests/validation/CL/ActivationLayer.cpp
+++ b/tests/validation/CL/ActivationLayer.cpp
@@ -227,4 +227,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/BitwiseAnd.cpp b/tests/validation/CL/BitwiseAnd.cpp
index c818fc5d98..12e63f84a8 100644
--- a/tests/validation/CL/BitwiseAnd.cpp
+++ b/tests/validation/CL/BitwiseAnd.cpp
@@ -215,4 +215,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/Box3x3.cpp b/tests/validation/CL/Box3x3.cpp
index 96a0d09ea3..c4660a754a 100644
--- a/tests/validation/CL/Box3x3.cpp
+++ b/tests/validation/CL/Box3x3.cpp
@@ -164,4 +164,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/CLFixture.h b/tests/validation/CL/CLFixture.h
index 138e0566eb..8569948a98 100644
--- a/tests/validation/CL/CLFixture.h
+++ b/tests/validation/CL/CLFixture.h
@@ -45,4 +45,4 @@ struct CLFixture
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_VALIDATION_CL_CLFIXTURE_H__ */
diff --git a/tests/validation/CL/ConvolutionLayer.cpp b/tests/validation/CL/ConvolutionLayer.cpp
index 60e8754193..fb06dd4d06 100644
--- a/tests/validation/CL/ConvolutionLayer.cpp
+++ b/tests/validation/CL/ConvolutionLayer.cpp
@@ -151,7 +151,7 @@ BOOST_DATA_TEST_CASE(SmallConvolutionLayer,
validate(CLAccessor(dst), ref_dst, tolerance_f32);
}
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
BOOST_AUTO_TEST_SUITE(Float)
BOOST_TEST_DECORATOR(*boost::unit_test::label("precommit"))
@@ -188,4 +188,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/DepthConvert.cpp b/tests/validation/CL/DepthConvert.cpp
index 87fe3814f7..340ddf2562 100644
--- a/tests/validation/CL/DepthConvert.cpp
+++ b/tests/validation/CL/DepthConvert.cpp
@@ -410,4 +410,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/FillBorder.cpp b/tests/validation/CL/FillBorder.cpp
index f6930eed9a..028bd20e1c 100644
--- a/tests/validation/CL/FillBorder.cpp
+++ b/tests/validation/CL/FillBorder.cpp
@@ -87,4 +87,4 @@ BOOST_DATA_TEST_CASE(FillBorder, BorderModes() * boost::unit_test::data::make({
}
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/FixedPoint/FixedPoint_QS8.cpp b/tests/validation/CL/FixedPoint/FixedPoint_QS8.cpp
index bc35de0f22..fb6e6220d9 100644
--- a/tests/validation/CL/FixedPoint/FixedPoint_QS8.cpp
+++ b/tests/validation/CL/FixedPoint/FixedPoint_QS8.cpp
@@ -70,7 +70,7 @@ CLTensor compute_fixed_point_op(const TensorShape &shape, int fixed_point_positi
std::string fixed_point_operation_kernel;
#ifndef EMBEDDED_KERNELS
fixed_point_operation_kernel += "#include \"fixed_point.h\"\n";
-#endif
+#endif /* EMBEDDED_KERNELS */
fixed_point_operation_kernel +=
"__kernel void fixed_point_operation_qs8( \n"
" __global char* src, \n"
@@ -138,7 +138,7 @@ CLTensor compute_fixed_point_op(const TensorShape &shape, int fixed_point_positi
#ifndef EMBEDDED_KERNELS
build_opts += " -I" + CLKernelLibrary::get().get_kernel_path();
-#else
+#else /* EMBEDDED_KERNELS */
sources.push_back(CLKernelLibrary::get().get_program_source("fixed_point.h"));
#endif /* EMBEDDED_KERNELS */
@@ -222,4 +222,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/GEMM.cpp b/tests/validation/CL/GEMM.cpp
index 076364c5ab..f79d84f271 100644
--- a/tests/validation/CL/GEMM.cpp
+++ b/tests/validation/CL/GEMM.cpp
@@ -199,4 +199,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/Gaussian3x3.cpp b/tests/validation/CL/Gaussian3x3.cpp
index bf4684d068..1a1bf82b61 100644
--- a/tests/validation/CL/Gaussian3x3.cpp
+++ b/tests/validation/CL/Gaussian3x3.cpp
@@ -164,4 +164,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/Gaussian5x5.cpp b/tests/validation/CL/Gaussian5x5.cpp
index 827dadd6a6..2ed2d3eaba 100644
--- a/tests/validation/CL/Gaussian5x5.cpp
+++ b/tests/validation/CL/Gaussian5x5.cpp
@@ -164,4 +164,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/IntegralImage.cpp b/tests/validation/CL/IntegralImage.cpp
index e46568e164..c45c03e8ca 100644
--- a/tests/validation/CL/IntegralImage.cpp
+++ b/tests/validation/CL/IntegralImage.cpp
@@ -140,4 +140,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/NonLinearFilter.cpp b/tests/validation/CL/NonLinearFilter.cpp
index 414a30812d..f89b54c049 100644
--- a/tests/validation/CL/NonLinearFilter.cpp
+++ b/tests/validation/CL/NonLinearFilter.cpp
@@ -201,4 +201,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/PoolingLayer.cpp b/tests/validation/CL/PoolingLayer.cpp
index 5876e8bf23..9b7e27f7c9 100644
--- a/tests/validation/CL/PoolingLayer.cpp
+++ b/tests/validation/CL/PoolingLayer.cpp
@@ -116,4 +116,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/Sobel3x3.cpp b/tests/validation/CL/Sobel3x3.cpp
index 59c21e7758..a70ed803d4 100644
--- a/tests/validation/CL/Sobel3x3.cpp
+++ b/tests/validation/CL/Sobel3x3.cpp
@@ -203,4 +203,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/Sobel5x5.cpp b/tests/validation/CL/Sobel5x5.cpp
index 8beb795969..3e02856f41 100644
--- a/tests/validation/CL/Sobel5x5.cpp
+++ b/tests/validation/CL/Sobel5x5.cpp
@@ -202,4 +202,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/SoftmaxLayer.cpp b/tests/validation/CL/SoftmaxLayer.cpp
index 3f8f465504..43efc04d36 100644
--- a/tests/validation/CL/SoftmaxLayer.cpp
+++ b/tests/validation/CL/SoftmaxLayer.cpp
@@ -191,4 +191,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/CL/Threshold.cpp b/tests/validation/CL/Threshold.cpp
index 4f9e420656..42254c690b 100644
--- a/tests/validation/CL/Threshold.cpp
+++ b/tests/validation/CL/Threshold.cpp
@@ -151,4 +151,4 @@ BOOST_DATA_TEST_CASE(RunLarge,
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/Datasets.h b/tests/validation/Datasets.h
index e33cc62a5e..64918fc4f5 100644
--- a/tests/validation/Datasets.h
+++ b/tests/validation/Datasets.h
@@ -268,4 +268,4 @@ struct is_dataset<arm_compute::test::MatrixPatterns> : boost::mpl::true_
}
}
}
-#endif
+#endif /* __ARM_COMPUTE_TEST_VALIDATION_DATASETS_H__ */
diff --git a/tests/validation/NEON/AbsoluteDifference.cpp b/tests/validation/NEON/AbsoluteDifference.cpp
index 779baa75e6..e083b8d409 100644
--- a/tests/validation/NEON/AbsoluteDifference.cpp
+++ b/tests/validation/NEON/AbsoluteDifference.cpp
@@ -198,4 +198,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Accumulate.cpp b/tests/validation/NEON/Accumulate.cpp
index f8cc5073a8..249b08dc8e 100644
--- a/tests/validation/NEON/Accumulate.cpp
+++ b/tests/validation/NEON/Accumulate.cpp
@@ -143,4 +143,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(),
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/AccumulateSquared.cpp b/tests/validation/NEON/AccumulateSquared.cpp
index 093ccb49af..770ed8f9c3 100644
--- a/tests/validation/NEON/AccumulateSquared.cpp
+++ b/tests/validation/NEON/AccumulateSquared.cpp
@@ -144,4 +144,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * boost::unit_test::data::make({ 0U
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/AccumulateWeighted.cpp b/tests/validation/NEON/AccumulateWeighted.cpp
index 8c54076f1b..2d7f12aeb3 100644
--- a/tests/validation/NEON/AccumulateWeighted.cpp
+++ b/tests/validation/NEON/AccumulateWeighted.cpp
@@ -143,4 +143,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * boost::unit_test::data::make({ 0.
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/ActivationLayer.cpp b/tests/validation/NEON/ActivationLayer.cpp
index 6a84a5367f..40be32278d 100644
--- a/tests/validation/NEON/ActivationLayer.cpp
+++ b/tests/validation/NEON/ActivationLayer.cpp
@@ -249,4 +249,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/ArithmeticAddition.cpp b/tests/validation/NEON/ArithmeticAddition.cpp
index fe998299b8..def203b95f 100644
--- a/tests/validation/NEON/ArithmeticAddition.cpp
+++ b/tests/validation/NEON/ArithmeticAddition.cpp
@@ -225,4 +225,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/ArithmeticSubtraction.cpp b/tests/validation/NEON/ArithmeticSubtraction.cpp
index 35c29638a5..37240faaf6 100644
--- a/tests/validation/NEON/ArithmeticSubtraction.cpp
+++ b/tests/validation/NEON/ArithmeticSubtraction.cpp
@@ -225,4 +225,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/BatchNormalizationLayer.cpp b/tests/validation/NEON/BatchNormalizationLayer.cpp
index 3206b3965d..38e3751db4 100644
--- a/tests/validation/NEON/BatchNormalizationLayer.cpp
+++ b/tests/validation/NEON/BatchNormalizationLayer.cpp
@@ -193,4 +193,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/BitwiseAnd.cpp b/tests/validation/NEON/BitwiseAnd.cpp
index 44d0bd9870..130c94bcbb 100644
--- a/tests/validation/NEON/BitwiseAnd.cpp
+++ b/tests/validation/NEON/BitwiseAnd.cpp
@@ -215,4 +215,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/BitwiseNot.cpp b/tests/validation/NEON/BitwiseNot.cpp
index d30339e785..3897101165 100644
--- a/tests/validation/NEON/BitwiseNot.cpp
+++ b/tests/validation/NEON/BitwiseNot.cpp
@@ -139,4 +139,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/BitwiseOr.cpp b/tests/validation/NEON/BitwiseOr.cpp
index 9b47f79bad..78e81dd94c 100644
--- a/tests/validation/NEON/BitwiseOr.cpp
+++ b/tests/validation/NEON/BitwiseOr.cpp
@@ -147,4 +147,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/BitwiseXor.cpp b/tests/validation/NEON/BitwiseXor.cpp
index 7ab6448e36..41825a5dcb 100644
--- a/tests/validation/NEON/BitwiseXor.cpp
+++ b/tests/validation/NEON/BitwiseXor.cpp
@@ -147,4 +147,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Box3x3.cpp b/tests/validation/NEON/Box3x3.cpp
index 0b9c2f082f..00326c36fc 100644
--- a/tests/validation/NEON/Box3x3.cpp
+++ b/tests/validation/NEON/Box3x3.cpp
@@ -165,4 +165,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/ConvolutionLayer.cpp b/tests/validation/NEON/ConvolutionLayer.cpp
index da35442530..128fb8e842 100644
--- a/tests/validation/NEON/ConvolutionLayer.cpp
+++ b/tests/validation/NEON/ConvolutionLayer.cpp
@@ -45,8 +45,8 @@ namespace
const float tolerance_f32 = 1e-03f; /**< Tolerance value for comparing reference's output against implementation's output for DataType::F32 */
#ifdef ARM_COMPUTE_ENABLE_FP16
const float tolerance_f16 = 0.01f; /**< Tolerance value for comparing reference's output against implementation's output for DataType::F16 */
-#endif
-const float tolerance_qs8 = 3.0f; /**< Tolerance value for comparing reference's output against implementation's output for DataType::QS8 */
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
+const float tolerance_qs8 = 3.0f; /**< Tolerance value for comparing reference's output against implementation's output for DataType::QS8 */
Tensor compute_convolution_layer(const TensorShape &input_shape, const TensorShape &weights_shape, const TensorShape &bias_shape, const TensorShape &output_shape, DataType dt,
const PadStrideInfo &conv_info, int fixed_point_position)
@@ -151,7 +151,7 @@ BOOST_DATA_TEST_CASE(SmallConvolutionLayer,
validate(NEAccessor(dst), ref_dst, tolerance_f16);
}
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
BOOST_AUTO_TEST_SUITE(Float)
BOOST_TEST_DECORATOR(*boost::unit_test::label("precommit"))
@@ -220,4 +220,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/ConvolutionLayerDirect.cpp b/tests/validation/NEON/ConvolutionLayerDirect.cpp
index 0f5cee6d6d..aeac73c1d6 100644
--- a/tests/validation/NEON/ConvolutionLayerDirect.cpp
+++ b/tests/validation/NEON/ConvolutionLayerDirect.cpp
@@ -214,4 +214,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif \ No newline at end of file
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/DepthConvert.cpp b/tests/validation/NEON/DepthConvert.cpp
index 1aed9dddf5..4a37d98990 100644
--- a/tests/validation/NEON/DepthConvert.cpp
+++ b/tests/validation/NEON/DepthConvert.cpp
@@ -497,4 +497,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/FillBorder.cpp b/tests/validation/NEON/FillBorder.cpp
index 54710923c1..3ce4c6ffc9 100644
--- a/tests/validation/NEON/FillBorder.cpp
+++ b/tests/validation/NEON/FillBorder.cpp
@@ -86,4 +86,4 @@ BOOST_DATA_TEST_CASE(FillBorder, BorderModes() * boost::unit_test::data::make({
}
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp
index bb8961af73..f882508756 100644
--- a/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp
@@ -120,4 +120,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp
index e901f60986..8f01721bc6 100644
--- a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp
@@ -120,4 +120,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp b/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp
index fc79db08aa..dd51421072 100644
--- a/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp
@@ -120,4 +120,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp b/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp
index 78719d1290..0af86debcb 100644
--- a/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp
@@ -118,4 +118,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Log_QS16.cpp b/tests/validation/NEON/Fixedpoint/Log_QS16.cpp
index f7a9bc8ccc..f81f35967e 100644
--- a/tests/validation/NEON/Fixedpoint/Log_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Log_QS16.cpp
@@ -119,4 +119,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Log_QS8.cpp b/tests/validation/NEON/Fixedpoint/Log_QS8.cpp
index 8cdbd30867..4a4738e105 100644
--- a/tests/validation/NEON/Fixedpoint/Log_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Log_QS8.cpp
@@ -119,4 +119,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp b/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp
index 1ef73e2847..15fc6eeb21 100644
--- a/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp
@@ -119,4 +119,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp b/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp
index 9c33a9ebcb..b42f13ae47 100644
--- a/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp
@@ -119,4 +119,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/FullyConnectedLayer.cpp b/tests/validation/NEON/FullyConnectedLayer.cpp
index 69ff663193..ae0d94a53c 100644
--- a/tests/validation/NEON/FullyConnectedLayer.cpp
+++ b/tests/validation/NEON/FullyConnectedLayer.cpp
@@ -219,4 +219,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/GEMM.cpp b/tests/validation/NEON/GEMM.cpp
index 75ce39716c..4174de0cc8 100644
--- a/tests/validation/NEON/GEMM.cpp
+++ b/tests/validation/NEON/GEMM.cpp
@@ -217,4 +217,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Gaussian3x3.cpp b/tests/validation/NEON/Gaussian3x3.cpp
index 40ccfe070c..b303d5a6d4 100644
--- a/tests/validation/NEON/Gaussian3x3.cpp
+++ b/tests/validation/NEON/Gaussian3x3.cpp
@@ -165,4 +165,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Gaussian5x5.cpp b/tests/validation/NEON/Gaussian5x5.cpp
index f8771fb1a4..e094ee57b9 100644
--- a/tests/validation/NEON/Gaussian5x5.cpp
+++ b/tests/validation/NEON/Gaussian5x5.cpp
@@ -167,4 +167,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/IntegralImage.cpp b/tests/validation/NEON/IntegralImage.cpp
index e20eba6e70..ad6ba4b618 100644
--- a/tests/validation/NEON/IntegralImage.cpp
+++ b/tests/validation/NEON/IntegralImage.cpp
@@ -142,4 +142,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/MeanStdDev.cpp b/tests/validation/NEON/MeanStdDev.cpp
index 91de5b6175..1598bd893c 100644
--- a/tests/validation/NEON/MeanStdDev.cpp
+++ b/tests/validation/NEON/MeanStdDev.cpp
@@ -141,4 +141,4 @@ BOOST_DATA_TEST_CASE(RunLarge, Large2DShapes(), shape)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/NonLinearFilter.cpp b/tests/validation/NEON/NonLinearFilter.cpp
index 5da7812a34..eb2e80712a 100644
--- a/tests/validation/NEON/NonLinearFilter.cpp
+++ b/tests/validation/NEON/NonLinearFilter.cpp
@@ -201,4 +201,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/NormalizationLayer.cpp b/tests/validation/NEON/NormalizationLayer.cpp
index 65adaf5a3f..a8ba7dac55 100644
--- a/tests/validation/NEON/NormalizationLayer.cpp
+++ b/tests/validation/NEON/NormalizationLayer.cpp
@@ -150,4 +150,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/PixelWiseMultiplication.cpp b/tests/validation/NEON/PixelWiseMultiplication.cpp
index 83525170c7..f52489fa5b 100644
--- a/tests/validation/NEON/PixelWiseMultiplication.cpp
+++ b/tests/validation/NEON/PixelWiseMultiplication.cpp
@@ -425,4 +425,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/PoolingLayer.cpp b/tests/validation/NEON/PoolingLayer.cpp
index 9991437a2f..925c1ea7c1 100644
--- a/tests/validation/NEON/PoolingLayer.cpp
+++ b/tests/validation/NEON/PoolingLayer.cpp
@@ -164,4 +164,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/ROIPoolingLayer.cpp b/tests/validation/NEON/ROIPoolingLayer.cpp
index 08b051e9c9..cc8c873cc9 100644
--- a/tests/validation/NEON/ROIPoolingLayer.cpp
+++ b/tests/validation/NEON/ROIPoolingLayer.cpp
@@ -106,4 +106,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Sobel3x3.cpp b/tests/validation/NEON/Sobel3x3.cpp
index 3b69b2b898..ded9e737f3 100644
--- a/tests/validation/NEON/Sobel3x3.cpp
+++ b/tests/validation/NEON/Sobel3x3.cpp
@@ -202,4 +202,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Sobel5x5.cpp b/tests/validation/NEON/Sobel5x5.cpp
index 456e675643..d0d252f214 100644
--- a/tests/validation/NEON/Sobel5x5.cpp
+++ b/tests/validation/NEON/Sobel5x5.cpp
@@ -202,4 +202,4 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * BorderModes(), shape, border_mode
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/SoftmaxLayer.cpp b/tests/validation/NEON/SoftmaxLayer.cpp
index 389d44814d..549463962a 100644
--- a/tests/validation/NEON/SoftmaxLayer.cpp
+++ b/tests/validation/NEON/SoftmaxLayer.cpp
@@ -193,4 +193,4 @@ BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/NEON/Threshold.cpp b/tests/validation/NEON/Threshold.cpp
index 923245ed45..0ae495a4e3 100644
--- a/tests/validation/NEON/Threshold.cpp
+++ b/tests/validation/NEON/Threshold.cpp
@@ -151,4 +151,4 @@ BOOST_DATA_TEST_CASE(RunLarge,
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/Reference.h b/tests/validation/Reference.h
index ebd5fa76c4..cbdeb012ce 100644
--- a/tests/validation/Reference.h
+++ b/tests/validation/Reference.h
@@ -370,4 +370,4 @@ protected:
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_REFERENCE_REFERENCE_H__ */
diff --git a/tests/validation/ReferenceCPP.h b/tests/validation/ReferenceCPP.h
index e7567aea95..10e5ab6bc6 100644
--- a/tests/validation/ReferenceCPP.h
+++ b/tests/validation/ReferenceCPP.h
@@ -314,4 +314,4 @@ private:
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_REFERENCE_REFERENCE_CPP_H__ */
diff --git a/tests/validation/TensorFactory.h b/tests/validation/TensorFactory.h
index d842baddde..2f33dd283d 100644
--- a/tests/validation/TensorFactory.h
+++ b/tests/validation/TensorFactory.h
@@ -32,7 +32,7 @@
#if ARM_COMPUTE_ENABLE_FP16
#include <arm_fp16.h> // needed for float16_t
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace arm_compute
{
@@ -45,7 +45,7 @@ using TensorVariant = boost::variant < Tensor<uint8_t>, Tensor<int8_t>,
Tensor<uint32_t>, Tensor<int32_t>,
#ifdef ARM_COMPUTE_ENABLE_FP16
Tensor<float16_t>,
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
Tensor<float >>;
/** Helper to create a constant type if the passed reference is constant. */
@@ -100,7 +100,7 @@ public:
using value_type_f16 = typename match_const<R, float16_t>::type;
v = Tensor<float16_t>(shape, dt, fixed_point_position, reinterpret_cast<value_type_f16 *>(data));
break;
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
case DataType::F32:
using value_type_f32 = typename match_const<R, float>::type;
v = Tensor<float>(shape, dt, fixed_point_position, reinterpret_cast<value_type_f32 *>(data));
diff --git a/tests/validation/TensorOperations.h b/tests/validation/TensorOperations.h
index fbc69bc4d5..488ffa90d9 100644
--- a/tests/validation/TensorOperations.h
+++ b/tests/validation/TensorOperations.h
@@ -57,9 +57,9 @@ template <class T>
struct is_floating_point
: std::integral_constant < bool,
std::is_same<float, typename std::remove_cv<T>::type>::value ||
-#if ARM_COMPUTE_ENABLE_FP16
+#ifdef ARM_COMPUTE_ENABLE_FP16
std::is_same<float16_t, typename std::remove_cv<T>::type>::value ||
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
std::is_same<double, typename std::remove_cv<T>::type>::value || std::is_same<long double, typename std::remove_cv<T>::type>::value >
{
};
diff --git a/tests/validation/UNIT/FixedPoint.cpp b/tests/validation/UNIT/FixedPoint.cpp
index 0cac9bda9d..00cab9eb29 100644
--- a/tests/validation/UNIT/FixedPoint.cpp
+++ b/tests/validation/UNIT/FixedPoint.cpp
@@ -161,4 +161,4 @@ BOOST_DATA_TEST_CASE(FixedPointQS8Outputs, (boost::unit_test::data::make(func_na
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/UNIT/TensorInfo.cpp b/tests/validation/UNIT/TensorInfo.cpp
index 11ed9f6dcc..c74cfebfe4 100644
--- a/tests/validation/UNIT/TensorInfo.cpp
+++ b/tests/validation/UNIT/TensorInfo.cpp
@@ -88,4 +88,4 @@ shape, auto_padding, strides, offset)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/UNIT/TensorShape.cpp b/tests/validation/UNIT/TensorShape.cpp
index 2d78cd549a..4c1ef680b5 100644
--- a/tests/validation/UNIT/TensorShape.cpp
+++ b/tests/validation/UNIT/TensorShape.cpp
@@ -67,4 +67,4 @@ BOOST_DATA_TEST_CASE(SetEmpty, boost::unit_test::data::make({ 0, 1, 2, 3, 4, 5 }
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/UNIT/Utils.cpp b/tests/validation/UNIT/Utils.cpp
index 69523a5620..e28ca19620 100644
--- a/tests/validation/UNIT/Utils.cpp
+++ b/tests/validation/UNIT/Utils.cpp
@@ -68,7 +68,7 @@ BOOST_DATA_TEST_CASE(Index2CoordFail, boost::unit_test::data::make({ TensorShape
{
BOOST_CHECK_THROW(index2coord(shape, index), std::runtime_error);
}
-#endif
+#endif /* 0 */
BOOST_TEST_DECORATOR(*boost::unit_test::label("precommit") * boost::unit_test::label("nightly"))
BOOST_DATA_TEST_CASE(Coord2Index, boost::unit_test::data::make({ TensorShape{ 1U }, TensorShape{ 2U }, TensorShape{ 2U, 3U } }) ^ boost::unit_test::data::make({ Coordinates{ 0 }, Coordinates{ 1 }, Coordinates{ 0, 1 } })
@@ -87,8 +87,8 @@ BOOST_DATA_TEST_CASE(Coord2IndexFail, boost::unit_test::data::make({ TensorShape
{
BOOST_CHECK_THROW(coord2index(shape, coordinate), std::runtime_error);
}
-#endif
+#endif /* 0 */
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
diff --git a/tests/validation/Validation.cpp b/tests/validation/Validation.cpp
index 0092e4dfed..f65f22935f 100644
--- a/tests/validation/Validation.cpp
+++ b/tests/validation/Validation.cpp
@@ -40,9 +40,9 @@
#include <cstdint>
#include <iomanip>
-#if ARM_COMPUTE_ENABLE_FP16
+#ifdef ARM_COMPUTE_ENABLE_FP16
#include <arm_fp16.h> // needed for float16_t
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
namespace arm_compute
{
@@ -88,10 +88,10 @@ double get_double_data(const void *ptr, DataType data_type)
return *reinterpret_cast<const uint64_t *>(ptr);
case DataType::S64:
return *reinterpret_cast<const int64_t *>(ptr);
-#if ARM_COMPUTE_ENABLE_FP16
+#ifdef ARM_COMPUTE_ENABLE_FP16
case DataType::F16:
return *reinterpret_cast<const float16_t *>(ptr);
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
case DataType::F32:
return *reinterpret_cast<const float *>(ptr);
case DataType::F64:
diff --git a/tests/validation/Validation.h b/tests/validation/Validation.h
index 2eb79dda8f..e833ae4322 100644
--- a/tests/validation/Validation.h
+++ b/tests/validation/Validation.h
@@ -131,4 +131,4 @@ void validate(float target, float ref, float tolerance_abs_error = std::numeric_
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_REFERENCE_VALIDATION_H__ */
diff --git a/tests/validation/ValidationProgramOptions.h b/tests/validation/ValidationProgramOptions.h
index bf30db960d..6b29b807de 100644
--- a/tests/validation/ValidationProgramOptions.h
+++ b/tests/validation/ValidationProgramOptions.h
@@ -42,4 +42,4 @@ public:
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_VALIDATION_PROGRAM_OPTIONS_H__ */
diff --git a/tests/validation/ValidationUserConfiguration.h b/tests/validation/ValidationUserConfiguration.h
index 28b58e8375..a9b8b4fe40 100644
--- a/tests/validation/ValidationUserConfiguration.h
+++ b/tests/validation/ValidationUserConfiguration.h
@@ -39,4 +39,4 @@ using ValidationUserConfiguration = UserConfiguration;
extern validation::ValidationUserConfiguration user_config;
} // namespace test
} // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_REFERENCE_VALIDATION_USER_CONFIGURATION_H__ */
diff --git a/tests/validation/system_tests/CL/AlexNet.cpp b/tests/validation/system_tests/CL/AlexNet.cpp
index bbbe4cde6e..a7c6ea4640 100644
--- a/tests/validation/system_tests/CL/AlexNet.cpp
+++ b/tests/validation/system_tests/CL/AlexNet.cpp
@@ -106,5 +106,5 @@ BOOST_AUTO_TEST_CASE(AlexNet)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
#endif /* INTERNAL_ONLY */
diff --git a/tests/validation/system_tests/CL/LeNet5.cpp b/tests/validation/system_tests/CL/LeNet5.cpp
index c05690d62a..42c5bd5a7b 100644
--- a/tests/validation/system_tests/CL/LeNet5.cpp
+++ b/tests/validation/system_tests/CL/LeNet5.cpp
@@ -89,5 +89,5 @@ BOOST_AUTO_TEST_CASE(LeNet5)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
#endif /* INTERNAL_ONLY */
diff --git a/tests/validation/system_tests/NEON/AlexNet.cpp b/tests/validation/system_tests/NEON/AlexNet.cpp
index 1bb17d4c9b..365689242b 100644
--- a/tests/validation/system_tests/NEON/AlexNet.cpp
+++ b/tests/validation/system_tests/NEON/AlexNet.cpp
@@ -107,5 +107,5 @@ BOOST_AUTO_TEST_CASE(AlexNet)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
#endif /* INTERNAL_ONLY */
diff --git a/tests/validation/system_tests/NEON/LeNet5.cpp b/tests/validation/system_tests/NEON/LeNet5.cpp
index 5a311ef6dd..fedc119cb3 100644
--- a/tests/validation/system_tests/NEON/LeNet5.cpp
+++ b/tests/validation/system_tests/NEON/LeNet5.cpp
@@ -89,5 +89,5 @@ BOOST_AUTO_TEST_CASE(LeNet5)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
-#endif
+#endif /* DOXYGEN_SKIP_THIS */
#endif /* INTERNAL_ONLY */
diff --git a/utils/Utils.h b/utils/Utils.h
index 3c84c824da..74ee09178d 100644
--- a/utils/Utils.h
+++ b/utils/Utils.h
@@ -153,7 +153,7 @@ public:
{
image.map();
}
-#endif
+#endif /* ARM_COMPUTE_CL */
// Check if the file is large enough to fill the image
const size_t current_position = _fs.tellg();
_fs.seekg(0, std::ios_base::end);
@@ -220,7 +220,7 @@ public:
{
image.unmap();
}
-#endif
+#endif /* ARM_COMPUTE_CL */
}
catch(const std::ifstream::failure &e)
{
@@ -267,7 +267,7 @@ void save_to_ppm(T &tensor, const std::string &ppm_filename)
{
tensor.map();
}
-#endif
+#endif /* ARM_COMPUTE_CL */
switch(tensor.info()->format())
{
@@ -314,7 +314,7 @@ void save_to_ppm(T &tensor, const std::string &ppm_filename)
{
tensor.unmap();
}
-#endif
+#endif /* ARM_COMPUTE_CL */
}
catch(const std::ofstream::failure &e)
{
@@ -351,7 +351,7 @@ void load_trained_data(T &tensor, const std::string &filename)
{
tensor.map();
}
-#endif
+#endif /* ARM_COMPUTE_CL */
Window window;
window.set(arm_compute::Window::DimX, arm_compute::Window::Dimension(0, 1, 1));
@@ -375,7 +375,7 @@ void load_trained_data(T &tensor, const std::string &filename)
{
tensor.unmap();
}
-#endif
+#endif /* ARM_COMPUTE_CL */
}
catch(const std::ofstream::failure &e)
{