From 12910f27933e269a4496c9342090d91cbaa421b6 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Tue, 14 Apr 2020 13:54:45 +0100 Subject: COMPMID-3069: Fix CLCompileContext The wrong name was stored in the program cache resulting in performance regression on some tests and graph examples. Change-Id: I5161bba4c512fe75eb4579548360ee18f87d9bd6 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3015 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/core/CL/CLCompileContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CL/CLCompileContext.cpp b/src/core/CL/CLCompileContext.cpp index 48cc64c387..32a407d11d 100644 --- a/src/core/CL/CLCompileContext.cpp +++ b/src/core/CL/CLCompileContext.cpp @@ -169,7 +169,7 @@ Kernel CLCompileContext::create_kernel(const std::string &kernel_name, const std cl_program = program.build(build_options); // Add built program to internal map - _built_programs_map.emplace(program_name, cl_program); + _built_programs_map.emplace(built_program_name, cl_program); } // Create and return kernel -- cgit v1.2.1