aboutsummaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-07-19 17:01:42 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commitbf959229f2250fe33fee4b03b335b93bb205465b (patch)
tree535acd25cee368deab8fc240e6cfaa702ccfb9d7 /framework
parent91654c45cf1de5f41127536a0fdd310c17fdfc8e (diff)
downloadComputeLibrary-bf959229f2250fe33fee4b03b335b93bb205465b.tar.gz
COMPMID-415 Bug fix: call clFinish() at the end of all the benchmarks
Change-Id: I024a8f6591404c5f1daf4dca6c4f988069d9532f Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81058 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/Framework.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/Framework.cpp b/framework/Framework.cpp
index 7708537fd6..e3ada039ae 100644
--- a/framework/Framework.cpp
+++ b/framework/Framework.cpp
@@ -28,6 +28,7 @@
#ifdef ARM_COMPUTE_CL
#include "arm_compute/core/CL/OpenCL.h"
+#include "arm_compute/runtime/CL/CLScheduler.h"
#endif /* ARM_COMPUTE_CL */
#include <chrono>
@@ -226,6 +227,12 @@ void Framework::run_test(TestCaseFactory &test_factory)
{
profiler.start();
test_case->do_run();
+#ifdef ARM_COMPUTE_CL
+ if(opencl_is_available())
+ {
+ CLScheduler::get().sync();
+ }
+#endif /* ARM_COMPUTE_CL */
profiler.stop();
}