diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2018-04-25 11:58:07 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:51:50 +0000 |
commit | b8fc60fc9fe9ad6c48d9618fc65753fbe5813216 (patch) | |
tree | a9f271d73f573686ba29c724bb3a3cee4b6b203b /tests | |
parent | 62385bce6baacfa194cff9e6be6d8eaa73bc3fab (diff) | |
download | ComputeLibrary-b8fc60fc9fe9ad6c48d9618fc65753fbe5813216.tar.gz |
COMPMID-1086: Optimizing GCGEMM - Add helpers to get target GPU information
This patch moves some of the helper functions in CLHelpers.[h,cpp] to
GPUTarget.[h,cpp] in order to make them avaialable to both CL and GLES backends.
Change-Id: Ib89b05a2084b73eb643b32fac13b8367cc80b6a5
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128988
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GLES_COMPUTE/Helper.h | 5 | ||||
-rw-r--r-- | tests/validation/UNIT/GPUTarget.cpp (renamed from tests/validation/CL/UNIT/Helpers.cpp) | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/tests/GLES_COMPUTE/Helper.h b/tests/GLES_COMPUTE/Helper.h index c2cd7c0dc8..65f992623a 100644 --- a/tests/GLES_COMPUTE/Helper.h +++ b/tests/GLES_COMPUTE/Helper.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -35,8 +35,6 @@ namespace arm_compute { namespace test { -namespace gles_compute -{ /** Helper to create an empty tensor. * * @param[in] shape Desired shape. @@ -92,7 +90,6 @@ inline void print_tensor(ITensor &tensor, const std::string &name, IOFormatInfo std::cout << s.str().c_str(); t.unmap(); } -} // namespace gles_compute } // namespace test } // namespace arm_compute #endif /* __ARM_COMPUTE_TEST_GC_HELPER_H__ */ diff --git a/tests/validation/CL/UNIT/Helpers.cpp b/tests/validation/UNIT/GPUTarget.cpp index d651efcd5b..62e0b1dbdc 100644 --- a/tests/validation/CL/UNIT/Helpers.cpp +++ b/tests/validation/UNIT/GPUTarget.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#include "arm_compute/core/CL/CLHelpers.h" +#include "arm_compute/core/GPUTarget.h" #include "support/ToolchainSupport.h" #include "tests/AssetsLibrary.h" #include "tests/Globals.h" @@ -35,7 +35,7 @@ namespace test namespace validation { TEST_SUITE(UNIT) -TEST_SUITE(CLHelpers) +TEST_SUITE(GPUTarget) TEST_CASE(GetGPUTargetFromName, framework::DatasetMode::ALL) { |