Skip to content

[SYCL] Remove deprecated shuffles from the sub-group class #13666

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

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
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
58 changes: 0 additions & 58 deletions sycl/include/sycl/sub_group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,64 +209,6 @@ struct sub_group {
#endif
}

template <typename T>
using EnableIfIsScalarArithmetic =
std::enable_if_t<sycl::detail::is_scalar_arithmetic<T>::value, T>;

/* --- one-input shuffles --- */
/* indices in [0 , sub_group size) */
template <typename T>
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
T shuffle(T x, id_type local_id) const {
#ifdef __SYCL_DEVICE_ONLY__
return sycl::detail::spirv::Shuffle(*this, x, local_id);
#else
(void)x;
(void)local_id;
throw sycl::exception(make_error_code(errc::feature_not_supported),
"Sub-groups are not supported on host.");
#endif
}

template <typename T>
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
T shuffle_down(T x, uint32_t delta) const {
#ifdef __SYCL_DEVICE_ONLY__
return sycl::detail::spirv::ShuffleDown(*this, x, delta);
#else
(void)x;
(void)delta;
throw sycl::exception(make_error_code(errc::feature_not_supported),
"Sub-groups are not supported on host.");
#endif
}

template <typename T>
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
T shuffle_up(T x, uint32_t delta) const {
#ifdef __SYCL_DEVICE_ONLY__
return sycl::detail::spirv::ShuffleUp(*this, x, delta);
#else
(void)x;
(void)delta;
throw sycl::exception(make_error_code(errc::feature_not_supported),
"Sub-groups are not supported on host.");
#endif
}

template <typename T>
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
T shuffle_xor(T x, id_type value) const {
#ifdef __SYCL_DEVICE_ONLY__
return sycl::detail::spirv::ShuffleXor(*this, x, value);
#else
(void)x;
(void)value;
throw sycl::exception(make_error_code(errc::feature_not_supported),
"Sub-groups are not supported on host.");
#endif
}

/* --- sub_group load/stores --- */
/* these can map to SIMD or block read/write hardware where available */
#ifdef __SYCL_DEVICE_ONLY__
Expand Down
239 changes: 0 additions & 239 deletions sycl/test-e2e/SubGroup/generic-shuffle.cpp

This file was deleted.

54 changes: 0 additions & 54 deletions sycl/test-e2e/SubGroup/shuffle.cpp

This file was deleted.

26 changes: 0 additions & 26 deletions sycl/test-e2e/SubGroup/shuffle_fp16.cpp

This file was deleted.

Loading
Loading