diff options
-rw-r--r-- | tests/framework/Framework.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/framework/Framework.cpp b/tests/framework/Framework.cpp index 182e0babcd..eea7745230 100644 --- a/tests/framework/Framework.cpp +++ b/tests/framework/Framework.cpp @@ -532,7 +532,7 @@ bool Framework::run() { #ifdef ARM_COMPUTE_CL // Every 5000 tests, reset the OpenCL context to release the allocated memory - if((id_run_test % 5000) == 0) + if(opencl_is_available() && (id_run_test % 5000) == 0) { auto ctx_properties = CLScheduler::get().context().getInfo<CL_CONTEXT_PROPERTIES>(nullptr); auto queue_properties = CLScheduler::get().queue().getInfo<CL_QUEUE_PROPERTIES>(nullptr); |