aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CL/CLKernelLibrary.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-01-16 17:21:45 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:43:42 +0000
commit200b6e38b2f66a87dd0e73b6833554d1cab20b26 (patch)
treef41eb7be39a0f83e78ca56ea2d4a671b70a0ccb5 /arm_compute/core/CL/CLKernelLibrary.h
parent826c76952b45098f2d090fb3c292707a872e20ce (diff)
downloadComputeLibrary-200b6e38b2f66a87dd0e73b6833554d1cab20b26.tar.gz
COMPMID-839 Added method to clear the Kernel Library's program cache
Change-Id: If2e14c19f16686a2a8e05832845f8bfcf0f0cdaf Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/116537 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/core/CL/CLKernelLibrary.h')
-rw-r--r--arm_compute/core/CL/CLKernelLibrary.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arm_compute/core/CL/CLKernelLibrary.h b/arm_compute/core/CL/CLKernelLibrary.h
index 25c7f75ba6..20e245ece8 100644
--- a/arm_compute/core/CL/CLKernelLibrary.h
+++ b/arm_compute/core/CL/CLKernelLibrary.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -286,6 +286,14 @@ public:
*/
cl::NDRange default_ndrange() const;
+ /** Clear the library's cache of binary programs
+ */
+ void clear_programs_cache()
+ {
+ _programs_map.clear();
+ _built_programs_map.clear();
+ }
+
private:
/** Load program and its dependencies.
*