Skip to content

[SYCL][ESIMD][NFC] Removed unused APIs from simd_view class #2364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions sycl/include/CL/sycl/INTEL/esimd/esimd_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,6 @@ template <typename BaseTy, typename RegionTy> class simd_view {
return getTopRegion(M_region).M_offset_y;
}

template <int Dim = 0> static constexpr int getSize() {
static_assert(Dim <= is2D(), "region is not two-dimensional");
return (Dim == 0) ? getSizeX() : getSizeY();
}

template <int Dim = 0> static constexpr int getStride() {
static_assert(Dim <= is2D(), "region is not two-dimensional");
return (Dim == 0) ? getStrideX() : getStrideY();
}

template <int Dim = 0> constexpr uint16_t getOffset() const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to update the reference in sycl/test/basic_tests/esimd/simd.cpp, to replace getOffset<0>()/getOffset<1>() with getOffsetX()/getOffsetY().

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;
Expand Down