From 77497d7c2225599db2b8bf7732516c092c0d734a Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Wed, 27 Sep 2017 09:17:00 +0100 Subject: COMPMID-417 - Fix for the config_id default string The empty string used by default for config_id caused a memory corruption on Android. Change-Id: Ib9c764c8a8f7009936071f8c8fec1653bb000f90 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89262 Tested-by: Kaizen Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier --- src/runtime/CL/CLTuner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/CL/CLTuner.cpp') diff --git a/src/runtime/CL/CLTuner.cpp b/src/runtime/CL/CLTuner.cpp index f3300d3f83..7f5be86833 100644 --- a/src/runtime/CL/CLTuner.cpp +++ b/src/runtime/CL/CLTuner.cpp @@ -42,8 +42,8 @@ void CLTuner::tune_kernel(ICLKernel &kernel) // Get the configuration ID from the kernel const std::string &config_id = kernel.config_id(); - // Check if we need to find the Optimal LWS. If config_id is empty, the kernel does not require to be tuned - if(config_id != "") + // Check if we need to find the Optimal LWS. If config_id is equal to default_config_id, the kernel does not require to be tuned + if(config_id != arm_compute::default_config_id) { auto p = _lws_table.find(config_id); -- cgit v1.2.1