aboutsummaryrefslogtreecommitdiff
path: root/tests/framework
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-10-26 14:07:56 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:55:45 +0000
commitf5ec981e27633cbc34b36a537d41a6e629bc2fc4 (patch)
tree755eb3468b87134c76c11a129c5b73b9523421bd /tests/framework
parent009fede645a5856f108af061916a736ad0b53333 (diff)
downloadComputeLibrary-f5ec981e27633cbc34b36a537d41a6e629bc2fc4.tar.gz
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 <giuseppe.rossini@arm.com> Tested-by: bsgcomp <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework')
-rw-r--r--tests/framework/Framework.cpp4
1 files changed, 2 insertions, 2 deletions
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<CL_CONTEXT_PROPERTIES>(nullptr);
auto queue_properties = CLScheduler::get().queue().getInfo<CL_QUEUE_PROPERTIES>(nullptr);