From 724079d6fce3bf6a05cd6c7b4884b132b27e9e90 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 15 Dec 2017 11:37:37 +0000 Subject: COMPMID-959 Add benchmark namespace in benchmark tests Change-Id: Ieef1c5380bff1c019af0203fb7e4734f48a2fb63 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113499 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- tests/benchmark/NEON/ActivationLayer.cpp | 3 +++ tests/benchmark/NEON/BatchNormalizationLayer.cpp | 3 +++ tests/benchmark/NEON/ConvolutionLayer.cpp | 3 +++ tests/benchmark/NEON/DirectConvolutionLayer.cpp | 3 +++ tests/benchmark/NEON/Floor.cpp | 5 ++++- tests/benchmark/NEON/FullyConnectedLayer.cpp | 3 +++ tests/benchmark/NEON/GEMM.cpp | 3 +++ tests/benchmark/NEON/GEMMLowp.cpp | 5 ++++- tests/benchmark/NEON/NormalizationLayer.cpp | 3 +++ tests/benchmark/NEON/PoolingLayer.cpp | 3 +++ tests/benchmark/NEON/ROIPoolingLayer.cpp | 5 ++++- tests/benchmark/NEON/SYSTEM/AlexNet.cpp | 3 +++ tests/benchmark/NEON/SYSTEM/LeNet5.cpp | 3 +++ tests/benchmark/NEON/SoftmaxLayer.cpp | 3 +++ 14 files changed, 45 insertions(+), 3 deletions(-) (limited to 'tests/benchmark/NEON') diff --git a/tests/benchmark/NEON/ActivationLayer.cpp b/tests/benchmark/NEON/ActivationLayer.cpp index 58aa42a8a4..e1664d3e59 100644 --- a/tests/benchmark/NEON/ActivationLayer.cpp +++ b/tests/benchmark/NEON/ActivationLayer.cpp @@ -44,6 +44,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -125,5 +127,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(YOLOV2ActivationLayer, NEActivationLayerFixture, framework::dataset::make("Batches", { 4, 8 }))); TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/BatchNormalizationLayer.cpp b/tests/benchmark/NEON/BatchNormalizationLayer.cpp index 25200374f3..6d28318b2e 100644 --- a/tests/benchmark/NEON/BatchNormalizationLayer.cpp +++ b/tests/benchmark/NEON/BatchNormalizationLayer.cpp @@ -40,6 +40,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -89,5 +91,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV4BatchNormalizationLayer, NEB framework::dataset::make("Batches", { 4, 8 }))); TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/ConvolutionLayer.cpp b/tests/benchmark/NEON/ConvolutionLayer.cpp index af0db6dfc5..9914d08c72 100644 --- a/tests/benchmark/NEON/ConvolutionLayer.cpp +++ b/tests/benchmark/NEON/ConvolutionLayer.cpp @@ -45,6 +45,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -152,5 +154,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(SqueezeNetWinogradLayer, NEWinogradLayerFixture, TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/DirectConvolutionLayer.cpp b/tests/benchmark/NEON/DirectConvolutionLayer.cpp index 7854f618b9..67b948568f 100644 --- a/tests/benchmark/NEON/DirectConvolutionLayer.cpp +++ b/tests/benchmark/NEON/DirectConvolutionLayer.cpp @@ -43,6 +43,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { // Special data types for networks that need 5x5 direct convolution, which does not support Fixed Point @@ -100,5 +102,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(YOLOV2DirectConvolutionLayer, NEConvolutionLayer TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/Floor.cpp b/tests/benchmark/NEON/Floor.cpp index 824aee95ec..f87e70c356 100644 --- a/tests/benchmark/NEON/Floor.cpp +++ b/tests/benchmark/NEON/Floor.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -37,6 +37,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { const auto data_types = framework::dataset::make("DataType", { DataType::F32 }); @@ -50,5 +52,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(Floor, NEFloorFixture, framework::DatasetMode::A framework::dataset::combine(datasets::SmallShapes(), data_types)); TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/FullyConnectedLayer.cpp b/tests/benchmark/NEON/FullyConnectedLayer.cpp index edd4406485..d0fb04f000 100644 --- a/tests/benchmark/NEON/FullyConnectedLayer.cpp +++ b/tests/benchmark/NEON/FullyConnectedLayer.cpp @@ -41,6 +41,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -106,5 +108,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV4FullyConnectedLayer, NEFully framework::dataset::make("Batches", { 4, 8 }))); TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/GEMM.cpp b/tests/benchmark/NEON/GEMM.cpp index 473d6429fb..2a57ace269 100644 --- a/tests/benchmark/NEON/GEMM.cpp +++ b/tests/benchmark/NEON/GEMM.cpp @@ -39,6 +39,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { const auto data_types = framework::dataset::make("DataType", @@ -67,5 +69,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(GoogleNetGEMM, NEGEMMFixture, framework::Dataset reshape_b_only_once)); TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/GEMMLowp.cpp b/tests/benchmark/NEON/GEMMLowp.cpp index e3ad1d43d2..4b13f31147 100644 --- a/tests/benchmark/NEON/GEMMLowp.cpp +++ b/tests/benchmark/NEON/GEMMLowp.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -39,6 +39,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ using NEGEMMLowpFixture = GEMMLowpMatrixMultiplyCoreFixture; TEST_SUITE(NEON) @@ -48,5 +50,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(MatrixMultiplyGEMMLowp, NEGEMMLowpFixture, frame REGISTER_FIXTURE_DATA_TEST_CASE(GoogleNetGEMMLowp, NEGEMMLowpFixture, framework::DatasetMode::NIGHTLY, datasets::GoogleNetGEMMDataset()); TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/NormalizationLayer.cpp b/tests/benchmark/NEON/NormalizationLayer.cpp index 1f2b2a3405..0c9a864eec 100644 --- a/tests/benchmark/NEON/NormalizationLayer.cpp +++ b/tests/benchmark/NEON/NormalizationLayer.cpp @@ -38,6 +38,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -72,5 +74,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1NormalizationLayer, NENormal framework::dataset::make("Batches", { 4, 8 }))); TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/PoolingLayer.cpp b/tests/benchmark/NEON/PoolingLayer.cpp index c1e1a01563..bdb5032898 100644 --- a/tests/benchmark/NEON/PoolingLayer.cpp +++ b/tests/benchmark/NEON/PoolingLayer.cpp @@ -43,6 +43,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -100,5 +102,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(YOLOV2PoolingLayer, NEPoolingLayerFixture, frame framework::dataset::combine(framework::dataset::combine(datasets::YOLOV2PoolingLayerDataset(), data_types), framework::dataset::make("Batches", { 4, 8 }))); TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/ROIPoolingLayer.cpp b/tests/benchmark/NEON/ROIPoolingLayer.cpp index 64b3570715..02cf47b189 100644 --- a/tests/benchmark/NEON/ROIPoolingLayer.cpp +++ b/tests/benchmark/NEON/ROIPoolingLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -39,6 +39,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ using NEROIPoolingLayerFixture = ROIPoolingLayerFixture, ArrayAccessor>; TEST_SUITE(NEON) @@ -49,5 +51,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(SmallROIPoolingLayer, NEROIPoolingLayerFixture, framework::dataset::make("Batches", { 1, 4, 8 }))); TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/SYSTEM/AlexNet.cpp b/tests/benchmark/NEON/SYSTEM/AlexNet.cpp index e28f967773..e3491757f4 100644 --- a/tests/benchmark/NEON/SYSTEM/AlexNet.cpp +++ b/tests/benchmark/NEON/SYSTEM/AlexNet.cpp @@ -43,6 +43,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ namespace { #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC @@ -73,5 +75,6 @@ REGISTER_FIXTURE_DATA_TEST_CASE(AlexNet, NEAlexNetFixture, framework::DatasetMod TEST_SUITE_END() TEST_SUITE_END() +} // namespace benchmark } // namespace test } // namespace arm_compute diff --git a/tests/benchmark/NEON/SYSTEM/LeNet5.cpp b/tests/benchmark/NEON/SYSTEM/LeNet5.cpp index d8ec5754e7..d9d08f48bf 100644 --- a/tests/benchmark/NEON/SYSTEM/LeNet5.cpp +++ b/tests/benchmark/NEON/SYSTEM/LeNet5.cpp @@ -40,6 +40,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ using NELeNet5Fixture = LeNet5Fixture