From 1fcbb31e3bb3931801bde50f9568e891518dba91 Mon Sep 17 00:00:00 2001 From: Denis Bakhvalov Date: Mon, 24 Aug 2020 14:56:06 -0700 Subject: [PATCH] [SYCL][ESIMD][NFC] Removed unused APIs from simd_view class --- sycl/include/CL/sycl/INTEL/esimd/esimd_view.hpp | 15 --------------- sycl/test/basic_tests/esimd/simd.cpp | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/sycl/include/CL/sycl/INTEL/esimd/esimd_view.hpp b/sycl/include/CL/sycl/INTEL/esimd/esimd_view.hpp index aa3e29698cf99..e7043e3063089 100644 --- a/sycl/include/CL/sycl/INTEL/esimd/esimd_view.hpp +++ b/sycl/include/CL/sycl/INTEL/esimd/esimd_view.hpp @@ -89,21 +89,6 @@ template class simd_view { return getTopRegion(M_region).M_offset_y; } - template static constexpr int getSize() { - static_assert(Dim <= is2D(), "region is not two-dimensional"); - return (Dim == 0) ? getSizeX() : getSizeY(); - } - - template static constexpr int getStride() { - static_assert(Dim <= is2D(), "region is not two-dimensional"); - return (Dim == 0) ? getStrideX() : getStrideY(); - } - - template constexpr uint16_t getOffset() const { - static_assert(Dim <= is2D(), "region is not two-dimensional"); - return (Dim == 0) ? getOffsetX() : getOffsetX(); - } - // Read this simd_view object. value_type read() const { using BT = typename BaseTy::element_type; diff --git a/sycl/test/basic_tests/esimd/simd.cpp b/sycl/test/basic_tests/esimd/simd.cpp index 9ce57014f83f5..f09a764ed07fd 100644 --- a/sycl/test/basic_tests/esimd/simd.cpp +++ b/sycl/test/basic_tests/esimd/simd.cpp @@ -48,8 +48,8 @@ bool test_simd_select() __attribute__((sycl_device)) { bool test_2d_offset() __attribute__((sycl_device)) { simd v = 0; auto ref = v.format(); - return ref.select<2, 2, 2, 2>(2, 1).getOffset<0>() == 1 && - ref.select<2, 2, 2, 2>(2, 1).getOffset<1>() == 2; + return ref.select<2, 2, 2, 2>(2, 1).getOffsetX() == 1 && + ref.select<2, 2, 2, 2>(2, 1).getOffsetY() == 2; } bool test_simd_bin_op_promotion() __attribute__((sycl_device)) {