diff options
author | Gian Marco Iodice <gianmarco.iodice@arm.com> | 2017-09-27 09:17:00 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 77497d7c2225599db2b8bf7732516c092c0d734a (patch) | |
tree | 4a0d3fec3020d30a0a8a0f6c79c3ff3e7bd64884 /src/runtime/CL/CLTuner.cpp | |
parent | 31bbce1249138633ecd34d351e2ea237ff6d55c8 (diff) | |
download | ComputeLibrary-77497d7c2225599db2b8bf7732516c092c0d734a.tar.gz |
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 <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/runtime/CL/CLTuner.cpp')
-rw-r--r-- | src/runtime/CL/CLTuner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |