From f5ec981e27633cbc34b36a537d41a6e629bc2fc4 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 26 Oct 2018 14:07:56 +0100 Subject: COMPMID-1695: (Nightly) bad_alloc in CLIm2Col Clear CLContext in a more regular basis to make the driver release memory back to the system. Change-Id: I0df847766f57719433bbaeada45fe630e38c9541 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/155435 Reviewed-by: Giuseppe Rossini Tested-by: bsgcomp --- tests/framework/Framework.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/framework') diff --git a/tests/framework/Framework.cpp b/tests/framework/Framework.cpp index 1233ca5884..ffdecf3aa4 100644 --- a/tests/framework/Framework.cpp +++ b/tests/framework/Framework.cpp @@ -537,8 +537,8 @@ bool Framework::run() if(_test_filter.is_selected(test_info)) { #ifdef ARM_COMPUTE_CL - // Every 5000 tests, reset the OpenCL context to release the allocated memory - if(opencl_is_available() && (id_run_test % 5000) == 0) + // Every 100 tests, reset the OpenCL context to release the allocated memory + if(opencl_is_available() && (id_run_test % 100) == 0) { auto ctx_properties = CLScheduler::get().context().getInfo(nullptr); auto queue_properties = CLScheduler::get().queue().getInfo(nullptr); -- cgit v1.2.1