From 40f51a63c8e7258db15269427ae4fe1ad199c550 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Sat, 21 Nov 2020 03:04:18 +0000 Subject: Update default C++ standard to C++14 (3RDPARTY_UPDATE) Resolves: COMPMID-3849 Signed-off-by: Georgios Pinitas Change-Id: I6369f112337310140e2d6c8e79630cd11138dfa0 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4544 Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou Comments-Addressed: Arm Jenkins --- src/runtime/GLES_COMPUTE/functions/GCAbsoluteDifference.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCArithmeticAddition.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCConcatenateLayer.cpp | 4 +--- src/runtime/GLES_COMPUTE/functions/GCConvolutionLayer.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCDepthwiseConvolutionLayer.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCDirectConvolutionLayer.cpp | 7 +++---- src/runtime/GLES_COMPUTE/functions/GCFillBorder.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCGEMMInterleave4x4.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCGEMMTranspose1xW.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCPixelWiseMultiplication.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCPoolingLayer.cpp | 4 +--- src/runtime/GLES_COMPUTE/functions/GCScale.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCTensorShift.cpp | 3 +-- src/runtime/GLES_COMPUTE/functions/GCTranspose.cpp | 3 +-- 16 files changed, 18 insertions(+), 36 deletions(-) (limited to 'src/runtime/GLES_COMPUTE/functions') diff --git a/src/runtime/GLES_COMPUTE/functions/GCAbsoluteDifference.cpp b/src/runtime/GLES_COMPUTE/functions/GCAbsoluteDifference.cpp index 1b13143bde..29630c8981 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCAbsoluteDifference.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCAbsoluteDifference.cpp @@ -26,7 +26,6 @@ #include "arm_compute/core/GLES_COMPUTE/kernels/GCAbsoluteDifferenceKernel.h" #include "arm_compute/core/Helpers.h" -#include "support/MemorySupport.h" #include @@ -34,7 +33,7 @@ using namespace arm_compute; void GCAbsoluteDifference::configure(const IGCTensor *input1, const IGCTensor *input2, IGCTensor *output) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input1, input2, output); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp index a7ec758138..b3815f1625 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp @@ -25,7 +25,6 @@ #include "arm_compute/core/GLES_COMPUTE/kernels/GCActivationLayerKernel.h" #include "arm_compute/core/Helpers.h" -#include "support/MemorySupport.h" namespace arm_compute { @@ -38,7 +37,7 @@ void GCActivationLayer::configure(IGCTensor *input, IGCTensor *output, Activatio { auto core_ctx = _ctx ? _ctx->core_runtime_context() : /* Legacy */ nullptr; - auto k = arm_compute::support::cpp14::make_unique(core_ctx); + auto k = std::make_unique(core_ctx); k->configure(input, output, act_info); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCArithmeticAddition.cpp b/src/runtime/GLES_COMPUTE/functions/GCArithmeticAddition.cpp index 580f8d573c..5661a9bfdd 100755 --- a/src/runtime/GLES_COMPUTE/functions/GCArithmeticAddition.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCArithmeticAddition.cpp @@ -24,7 +24,6 @@ #include "arm_compute/runtime/GLES_COMPUTE/functions/GCArithmeticAddition.h" #include "arm_compute/core/GLES_COMPUTE/kernels/GCArithmeticAdditionKernel.h" -#include "support/MemorySupport.h" #include @@ -33,7 +32,7 @@ using namespace arm_compute; void GCArithmeticAddition::configure(const IGCTensor *input1, const IGCTensor *input2, IGCTensor *output, ConvertPolicy policy, const ActivationLayerInfo &act_info) { ARM_COMPUTE_UNUSED(act_info); - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input1, input2, output, policy); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCConcatenateLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCConcatenateLayer.cpp index 807412eb17..2c21d81e17 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCConcatenateLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCConcatenateLayer.cpp @@ -31,8 +31,6 @@ #include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" #include "src/core/helpers/AutoConfiguration.h" -#include "support/MemorySupport.h" - namespace arm_compute { GCConcatenateLayer::GCConcatenateLayer() @@ -61,7 +59,7 @@ void GCConcatenateLayer::configure(std::vector inputs_vector, IGCTe { for(unsigned int i = 0; i < _num_inputs; ++i) { - auto kernel = support::cpp14::make_unique(); + auto kernel = std::make_unique(); kernel->configure(inputs_vector.at(i), offset, output); offset += inputs_vector.at(i)->info()->dimension(axis); _concat_kernels.emplace_back(std::move(kernel)); diff --git a/src/runtime/GLES_COMPUTE/functions/GCConvolutionLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCConvolutionLayer.cpp index 0d0526d5c9..93a66f012e 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCConvolutionLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCConvolutionLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Arm Limited. + * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -31,7 +31,6 @@ #include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" #include -#include #include using namespace arm_compute; diff --git a/src/runtime/GLES_COMPUTE/functions/GCDepthwiseConvolutionLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCDepthwiseConvolutionLayer.cpp index 4ddd0ab4ca..46d5cc40d9 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCDepthwiseConvolutionLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCDepthwiseConvolutionLayer.cpp @@ -26,7 +26,6 @@ #include "arm_compute/core/GLES_COMPUTE/IGCTensor.h" #include "arm_compute/core/PixelValue.h" #include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" -#include "support/MemorySupport.h" using namespace arm_compute; @@ -40,7 +39,7 @@ void GCDepthwiseConvolutionLayer3x3::configure(IGCTensor *input, const IGCTensor { ARM_COMPUTE_ERROR_ON(dilation.x() != 1 || dilation.y() != 1); ARM_COMPUTE_UNUSED(dilation); - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, weights, biases, output, conv_info, depth_multiplier); _kernel = std::move(k); diff --git a/src/runtime/GLES_COMPUTE/functions/GCDirectConvolutionLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCDirectConvolutionLayer.cpp index c2aa81567e..63c963196a 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCDirectConvolutionLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCDirectConvolutionLayer.cpp @@ -30,7 +30,6 @@ #include "arm_compute/core/TensorInfo.h" #include "arm_compute/core/Utils.h" #include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" -#include "support/MemorySupport.h" using namespace arm_compute; @@ -46,19 +45,19 @@ void GCDirectConvolutionLayer::configure(IGCTensor *input, const IGCTensor *weig if(kernel_size == 1) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, weights, biases, output, conv_info, act_info); _kernel = std::move(k); } else if(kernel_size == 3) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, weights, biases, output, conv_info, act_info); _kernel = std::move(k); } else if(kernel_size == 5) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, weights, biases, output, conv_info, act_info); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCFillBorder.cpp b/src/runtime/GLES_COMPUTE/functions/GCFillBorder.cpp index 080b5a22ac..97b4fd946c 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCFillBorder.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCFillBorder.cpp @@ -26,7 +26,6 @@ #include "arm_compute/core/GLES_COMPUTE/kernels/GCFillBorderKernel.h" #include "arm_compute/core/Helpers.h" -#include "support/MemorySupport.h" #include @@ -34,7 +33,7 @@ using namespace arm_compute; void GCFillBorder::configure(IGCTensor *tensor, unsigned int border_width, BorderMode border_mode, const PixelValue &constant_border_value) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(tensor, BorderSize(border_width), border_mode, constant_border_value); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.cpp index 57a09edfd6..299a027b42 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.cpp @@ -25,7 +25,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" -#include "support/MemorySupport.h" #include @@ -33,7 +32,7 @@ using namespace arm_compute; void GCFullyConnectedLayerReshapeWeights::configure(const IGCTensor *input, IGCTensor *output) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, output); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCGEMMInterleave4x4.cpp b/src/runtime/GLES_COMPUTE/functions/GCGEMMInterleave4x4.cpp index 1366a134aa..c1287f7e9c 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCGEMMInterleave4x4.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCGEMMInterleave4x4.cpp @@ -24,13 +24,12 @@ #include "arm_compute/runtime/GLES_COMPUTE/functions/GCGEMMInterleave4x4.h" #include "arm_compute/core/GLES_COMPUTE/kernels/GCGEMMInterleave4x4Kernel.h" -#include "support/MemorySupport.h" using namespace arm_compute; void GCGEMMInterleave4x4::configure(const IGCTensor *input, IGCTensor *output) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, output); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCGEMMTranspose1xW.cpp b/src/runtime/GLES_COMPUTE/functions/GCGEMMTranspose1xW.cpp index 877f81ae9b..d085357eaa 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCGEMMTranspose1xW.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCGEMMTranspose1xW.cpp @@ -26,13 +26,12 @@ #include "arm_compute/core/GLES_COMPUTE/IGCTensor.h" #include "arm_compute/core/GLES_COMPUTE/kernels/GCGEMMTranspose1xWKernel.h" #include "arm_compute/core/Types.h" -#include "support/MemorySupport.h" using namespace arm_compute; void GCGEMMTranspose1xW::configure(const IGCTensor *input, IGCTensor *output) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, output); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCPixelWiseMultiplication.cpp b/src/runtime/GLES_COMPUTE/functions/GCPixelWiseMultiplication.cpp index daf978f3ac..ce50a63e53 100755 --- a/src/runtime/GLES_COMPUTE/functions/GCPixelWiseMultiplication.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCPixelWiseMultiplication.cpp @@ -24,7 +24,6 @@ #include "arm_compute/runtime/GLES_COMPUTE/functions/GCPixelWiseMultiplication.h" #include "arm_compute/core/GLES_COMPUTE/kernels/GCPixelWiseMultiplicationKernel.h" -#include "support/MemorySupport.h" #include @@ -33,7 +32,7 @@ using namespace arm_compute; void GCPixelWiseMultiplication::configure(const IGCTensor *input1, const IGCTensor *input2, IGCTensor *output, float scale, const ActivationLayerInfo &act_info) { ARM_COMPUTE_UNUSED(act_info); - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input1, input2, output, scale); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCPoolingLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCPoolingLayer.cpp index e4ccabc503..6a71fbebe7 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCPoolingLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCPoolingLayer.cpp @@ -27,8 +27,6 @@ #include "arm_compute/core/GLES_COMPUTE/kernels/GCPoolingLayerKernel.h" #include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" -#include "support/MemorySupport.h" - namespace arm_compute { GCPoolingLayer::GCPoolingLayer() @@ -39,7 +37,7 @@ GCPoolingLayer::GCPoolingLayer() void GCPoolingLayer::configure(IGCTensor *input, IGCTensor *output, const PoolingLayerInfo &pool_info, IGCTensor *indices) { // Configure pooling kernel - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, output, pool_info, indices); _kernel = std::move(k); diff --git a/src/runtime/GLES_COMPUTE/functions/GCScale.cpp b/src/runtime/GLES_COMPUTE/functions/GCScale.cpp index dccbe9960d..720006fead 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCScale.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCScale.cpp @@ -27,7 +27,6 @@ #include "arm_compute/core/GLES_COMPUTE/IGCTensor.h" #include "arm_compute/core/GLES_COMPUTE/kernels/GCScaleKernel.h" #include "arm_compute/core/Validate.h" -#include "support/MemorySupport.h" namespace arm_compute { @@ -39,7 +38,7 @@ void GCScale::configure(IGCTensor *input, IGCTensor *output, InterpolationPolicy void GCScale::configure(IGCTensor *input, IGCTensor *output, const ScaleKernelInfo &info) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, output, info); _kernel = std::move(k); _border_handler.configure(input, _kernel->border_size(), info.border_mode, info.constant_border_value); diff --git a/src/runtime/GLES_COMPUTE/functions/GCTensorShift.cpp b/src/runtime/GLES_COMPUTE/functions/GCTensorShift.cpp index 4cbd2e3e8e..050dc7e9f5 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCTensorShift.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCTensorShift.cpp @@ -28,13 +28,12 @@ #include "arm_compute/core/Helpers.h" #include "arm_compute/core/PixelValue.h" #include "arm_compute/core/Utils.h" -#include "support/MemorySupport.h" using namespace arm_compute; void GCTensorShift::configure(IGCTensor *input) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input); _kernel = std::move(k); } diff --git a/src/runtime/GLES_COMPUTE/functions/GCTranspose.cpp b/src/runtime/GLES_COMPUTE/functions/GCTranspose.cpp index da4471c925..14125e9db2 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCTranspose.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCTranspose.cpp @@ -24,7 +24,6 @@ #include "arm_compute/runtime/GLES_COMPUTE/functions/GCTranspose.h" #include "arm_compute/core/GLES_COMPUTE/kernels/GCTransposeKernel.h" -#include "support/MemorySupport.h" #include @@ -32,7 +31,7 @@ using namespace arm_compute; void GCTranspose::configure(const IGCTensor *input, IGCTensor *output) { - auto k = arm_compute::support::cpp14::make_unique(); + auto k = std::make_unique(); k->configure(input, output); _kernel = std::move(k); } -- cgit v1.2.1