aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2020-04-14 13:54:45 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2020-04-14 15:18:09 +0000
commit12910f27933e269a4496c9342090d91cbaa421b6 (patch)
tree2f95e68b724209405a920761f69b1f4b9953c752
parentb18252dce941001d8980721596709ea01d55747a (diff)
downloadComputeLibrary-12910f27933e269a4496c9342090d91cbaa421b6.tar.gz
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 <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3015 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--src/core/CL/CLCompileContext.cpp2
1 files changed, 1 insertions, 1 deletions
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