From 7a63e79219e4f2b0c7b7c0c98fee25cd20dde3ec Mon Sep 17 00:00:00 2001 From: Vidhya Sudhan Loganathan Date: Mon, 14 Jan 2019 16:29:20 +0000 Subject: COMPMID-1886 : Enable CLTuner for CLScale Change-Id: If92dc7fc46accdef5e67f96a91a8428c18db2028 Reviewed-on: https://review.mlplatform.org/517 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- src/core/CL/kernels/CLScaleKernel.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/core/CL/kernels/CLScaleKernel.cpp b/src/core/CL/kernels/CLScaleKernel.cpp index 96f4df88c1..c56cc6df44 100644 --- a/src/core/CL/kernels/CLScaleKernel.cpp +++ b/src/core/CL/kernels/CLScaleKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 ARM Limited. + * Copyright (c) 2016-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -227,6 +227,21 @@ void CLScaleKernel::configure(const ICLTensor *input, ICLTensor *output, Interpo _kernel.setArg(idx++, input_height); _kernel.setArg(idx++, scale_x); _kernel.setArg(idx++, scale_y); + + // Set config_id for enabling LWS tuning + _config_id = "scale_"; + _config_id += support::cpp11::to_string(border.right); + _config_id += (border_mode == BorderMode::REPLICATE? "Bord_rep":""); + _config_id += (sampling_policy == SamplingPolicy::CENTER ? "center" : "topleft"); + _config_id += (is_nhwc? "nhwc":"nchw"); + _config_id += "_"; + _config_id += support::cpp11::to_string(output->info()->dimension(0)); + _config_id += "_"; + _config_id += support::cpp11::to_string(output->info()->dimension(1)); + _config_id += "_"; + _config_id += support::cpp11::to_string(output->info()->dimension(2)); + _config_id += "_"; + _config_id += support::cpp11::to_string(output->info()->dimension(3)); } void CLScaleKernel::run(const Window &window, cl::CommandQueue &queue) -- cgit v1.2.1