From 1c5ffd612979d40730feecc4f43fa6c9f177f2e3 Mon Sep 17 00:00:00 2001 From: Joel Liang Date: Thu, 28 Dec 2017 10:09:51 +0800 Subject: APPBROWSER-359: Sync tensor in GC benchmark tests Change-Id: I22c1aa92e70d6143bbcec90e9e7de9f1ce1c1e55 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114635 Tested-by: Jenkins Reviewed-by: Pablo Tello --- tests/benchmark/fixtures/ScaleLayerFixture.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'tests/benchmark/fixtures/ScaleLayerFixture.h') diff --git a/tests/benchmark/fixtures/ScaleLayerFixture.h b/tests/benchmark/fixtures/ScaleLayerFixture.h index 94cc678b7f..f34a0033c1 100644 --- a/tests/benchmark/fixtures/ScaleLayerFixture.h +++ b/tests/benchmark/fixtures/ScaleLayerFixture.h @@ -31,13 +31,6 @@ #include "tests/framework/Asserts.h" #include "tests/framework/Fixture.h" -#ifdef ARM_COMPUTE_GC -#include "arm_compute/runtime/GLES_COMPUTE/GCScheduler.h" -#include "tests/GLES_COMPUTE/Helper.h" - -using namespace arm_compute::test::gles_compute; -#endif /* ARM_COMPUTE_GC */ - namespace arm_compute { namespace test @@ -83,12 +76,12 @@ public: void run() { scale_layer.run(); -#ifdef ARM_COMPUTE_GC - if(opengles31_is_available() && std::is_same::type, arm_compute::GCTensor>::value) - { - force_sync_tensor(dst); - } -#endif /* ARM_COMPUTE_GC */ + } + + void sync() + { + sync_if_necessary(); + sync_tensor_if_necessary(dst); } void teardown() -- cgit v1.2.1