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/GLES_COMPUTE/Helper.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'tests/GLES_COMPUTE') diff --git a/tests/GLES_COMPUTE/Helper.h b/tests/GLES_COMPUTE/Helper.h index 5f6460aa61..c2cd7c0dc8 100644 --- a/tests/GLES_COMPUTE/Helper.h +++ b/tests/GLES_COMPUTE/Helper.h @@ -91,23 +91,6 @@ inline void print_tensor(ITensor &tensor, const std::string &name, IOFormatInfo std::cout << name << ":" << std::endl; std::cout << s.str().c_str(); t.unmap(); - - return; -} - -/** Helper to sync tensor, if tensor is not used, GPU have optimized the operation. - * - * @param[in] tensor Tensor to be sync. - * - * @return Empty @ref GCTensor with the specified shape and data type. - */ -inline void force_sync_tensor(ITensor &tensor) -{ - IGCTensor &t = dynamic_cast(tensor); - t.map(); - t.unmap(); - - return; } } // namespace gles_compute } // namespace test -- cgit v1.2.1