Skip to content

Commit c9842c1

Browse files
[SYCL] Remove deprecated shuffles from the sub-group class (#13666)
Re-lands #13236 and reverts #13463.
1 parent df0dc3b commit c9842c1

File tree

5 files changed

+0
-402
lines changed

5 files changed

+0
-402
lines changed

sycl/include/sycl/sub_group.hpp

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -209,64 +209,6 @@ struct sub_group {
209209
#endif
210210
}
211211

212-
template <typename T>
213-
using EnableIfIsScalarArithmetic =
214-
std::enable_if_t<sycl::detail::is_scalar_arithmetic<T>::value, T>;
215-
216-
/* --- one-input shuffles --- */
217-
/* indices in [0 , sub_group size) */
218-
template <typename T>
219-
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
220-
T shuffle(T x, id_type local_id) const {
221-
#ifdef __SYCL_DEVICE_ONLY__
222-
return sycl::detail::spirv::Shuffle(*this, x, local_id);
223-
#else
224-
(void)x;
225-
(void)local_id;
226-
throw sycl::exception(make_error_code(errc::feature_not_supported),
227-
"Sub-groups are not supported on host.");
228-
#endif
229-
}
230-
231-
template <typename T>
232-
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
233-
T shuffle_down(T x, uint32_t delta) const {
234-
#ifdef __SYCL_DEVICE_ONLY__
235-
return sycl::detail::spirv::ShuffleDown(*this, x, delta);
236-
#else
237-
(void)x;
238-
(void)delta;
239-
throw sycl::exception(make_error_code(errc::feature_not_supported),
240-
"Sub-groups are not supported on host.");
241-
#endif
242-
}
243-
244-
template <typename T>
245-
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
246-
T shuffle_up(T x, uint32_t delta) const {
247-
#ifdef __SYCL_DEVICE_ONLY__
248-
return sycl::detail::spirv::ShuffleUp(*this, x, delta);
249-
#else
250-
(void)x;
251-
(void)delta;
252-
throw sycl::exception(make_error_code(errc::feature_not_supported),
253-
"Sub-groups are not supported on host.");
254-
#endif
255-
}
256-
257-
template <typename T>
258-
__SYCL_DEPRECATED("Shuffles in the sub-group class are deprecated.")
259-
T shuffle_xor(T x, id_type value) const {
260-
#ifdef __SYCL_DEVICE_ONLY__
261-
return sycl::detail::spirv::ShuffleXor(*this, x, value);
262-
#else
263-
(void)x;
264-
(void)value;
265-
throw sycl::exception(make_error_code(errc::feature_not_supported),
266-
"Sub-groups are not supported on host.");
267-
#endif
268-
}
269-
270212
/* --- sub_group load/stores --- */
271213
/* these can map to SIMD or block read/write hardware where available */
272214
#ifdef __SYCL_DEVICE_ONLY__

sycl/test-e2e/SubGroup/generic-shuffle.cpp

Lines changed: 0 additions & 239 deletions
This file was deleted.

sycl/test-e2e/SubGroup/shuffle.cpp

Lines changed: 0 additions & 54 deletions
This file was deleted.

sycl/test-e2e/SubGroup/shuffle_fp16.cpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)