diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-04-13 16:58:43 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:37 +0000 |
commit | 7da55aa651c58ddd7cec1bb176e6782bae134ccd (patch) | |
tree | 9bb6dc067dee32843ad12c0703f083963a0f4f8b /src/core/CL/CLKernelLibrary.cpp | |
parent | fd683111bba15288dc88b7f53486f935ebeccde0 (diff) | |
download | ComputeLibrary-7da55aa651c58ddd7cec1bb176e6782bae134ccd.tar.gz |
COMPMID-959: Add accessors for the OpenCL program cache
Change-Id: I7920ecdf6687341cbcf4d75aecc15c4164c64636
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/127722
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r-- | src/core/CL/CLKernelLibrary.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp index ad028ec5e8..48316ce991 100644 --- a/src/core/CL/CLKernelLibrary.cpp +++ b/src/core/CL/CLKernelLibrary.cpp @@ -771,6 +771,11 @@ Kernel CLKernelLibrary::create_kernel(const std::string &kernel_name, const Stri return Kernel(kernel_name, cl_program); } +void CLKernelLibrary::add_built_program(const std::string &built_program_name, cl::Program program) +{ + _built_programs_map.emplace(built_program_name, program); +} + const Program &CLKernelLibrary::load_program(const std::string &program_name) const { const auto program_it = _programs_map.find(program_name); |