From db9116ff15170ff734aad0300b46c48abc2a3b7b Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 11 Jul 2019 16:50:37 +0100 Subject: COMPMID-2443: CL example use program cache by default. Change-Id: I9db5cf4ce98e86f7488f4041f0d0247d3d0cd663 Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/1528 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Reviewed-by: VidhyaSudhan Loganathan --- utils/Utils.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'utils/Utils.h') diff --git a/utils/Utils.h b/utils/Utils.h index eec6972470..ba10d7c803 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -823,6 +823,18 @@ int compare_tensor(ITensor &tensor1, ITensor &tensor2, T tolerance) return num_mismatches; } + +/** This function saves opencl kernels library to a file + * + * @param[in] filename Name of the file to be used to save the library + */ +void save_program_cache_to_file(const std::string &filename = "cache.bin"); + +/** This function loads prebuilt opencl kernels from a file + * + * @param[in] filename Name of the file to be used to load the kernels + */ +void restore_program_cache_from_file(const std::string &filename = "cache.bin"); } // namespace utils } // namespace arm_compute #endif /* __UTILS_UTILS_H__*/ -- cgit v1.2.1