Skip to content

Commit e9b0e60

Browse files
[SYCL] Remove deprecated shuffles from the sub-group class (#13236)
1 parent 9612159 commit e9b0e60

File tree

5 files changed

+0
-403
lines changed

5 files changed

+0
-403
lines changed

sycl/include/sycl/sub_group.hpp

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -213,64 +213,6 @@ struct sub_group {
213213
#endif
214214
}
215215

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

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

Lines changed: 0 additions & 240 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)