From 2113b9d9ada3a392b1215c4afd7715249d629bfc Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Thu, 23 Aug 2018 09:48:40 +0100 Subject: COMPMID-1246: Don't call CLFinish at the end of benchmark / validation if opencl is not available Change-Id: Ia938df46d5e736ea188c7d5fc2e9f39d5bc8fda5 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145312 Tested-by: Anthony Barbier Reviewed-by: Georgios Pinitas --- tests/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index 7616dbe225..f57b206e5a 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -241,10 +241,13 @@ int main(int argc, char **argv) } #ifdef ARM_COMPUTE_CL - CLScheduler::get().sync(); - if(enable_tuner->is_set() && enable_tuner->value() && tuner_file->is_set()) + if(opencl_is_available()) { - cl_tuner.save_to_file(tuner_file->value()); + CLScheduler::get().sync(); + if(enable_tuner->is_set() && enable_tuner->value() && tuner_file->is_set()) + { + cl_tuner.save_to_file(tuner_file->value()); + } } #endif /* ARM_COMPUTE_CL */ -- cgit v1.2.1