diff options
author | Pablo Tello <pablo.tello@arm.com> | 2019-07-11 16:50:37 +0100 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2019-07-18 14:55:49 +0000 |
commit | db9116ff15170ff734aad0300b46c48abc2a3b7b (patch) | |
tree | 5846ab774aa5e6725e9144841b745e1ad2641583 /utils/Utils.h | |
parent | 06be6f8d2a316a307fa623150f8adf8f9c3416c5 (diff) | |
download | ComputeLibrary-db9116ff15170ff734aad0300b46c48abc2a3b7b.tar.gz |
COMPMID-2443: CL example use program cache by default.
Change-Id: I9db5cf4ce98e86f7488f4041f0d0247d3d0cd663
Signed-off-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1528
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-by: VidhyaSudhan Loganathan <vidhyasudhan.loganathan@arm.com>
Diffstat (limited to 'utils/Utils.h')
-rw-r--r-- | utils/Utils.h | 12 |
1 files changed, 12 insertions, 0 deletions
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__*/ |