Skip to content

Commit c2c74c3

Browse files
[NFC][SYCL][Reduction] Remove dead withAuxHandler (#7217)
Became dead in #6646: 1660a61#diff-b2b881baf4af17b5de77ee38a9f201f59e259d79ccf34463b3695076ec191e03L2408-L2414
1 parent 70e23bc commit c2c74c3

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,6 @@ tuple_select_elements(TupleT Tuple, std::index_sequence<Is...>);
351351

352352
template <typename T> struct IsReduction;
353353
template <typename FirstT, typename... RestT> struct AreAllButLastReductions;
354-
355-
template <class FunctorTy>
356-
event withAuxHandler(std::shared_ptr<detail::queue_impl> Queue, bool IsHost,
357-
FunctorTy Func);
358354
} // namespace detail
359355

360356
/// Command group handler class.
@@ -485,7 +481,6 @@ class __SYCL_EXPORT handler {
485481

486482
/// Helper utility for operation widely used through different reduction
487483
/// implementations.
488-
/// @{
489484
template <class FunctorTy>
490485
event withAuxHandler(std::shared_ptr<detail::queue_impl> Queue,
491486
FunctorTy Func) {
@@ -495,11 +490,6 @@ class __SYCL_EXPORT handler {
495490
return AuxHandler.finalize();
496491
}
497492

498-
template <class FunctorTy>
499-
friend event detail::withAuxHandler(std::shared_ptr<detail::queue_impl> Queue,
500-
bool IsHost, FunctorTy Func);
501-
/// }@
502-
503493
/// Saves buffers created by handling reduction feature in handler.
504494
/// They are then forwarded to command group and destroyed only after
505495
/// the command group finishes the work on device/host.

sycl/include/sycl/reduction.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ template <typename T, class BinaryOperation, int Dims, size_t Extent,
6868
class reducer;
6969

7070
namespace detail {
71-
template <class FunctorTy>
72-
event withAuxHandler(std::shared_ptr<detail::queue_impl> Queue, bool IsHost,
73-
FunctorTy Func) {
74-
handler AuxHandler(Queue, IsHost);
75-
Func(AuxHandler);
76-
return AuxHandler.finalize();
77-
}
78-
7971
// This type trait is used to detect if the atomic operation BinaryOperation
8072
// used with operands of the type T is available for using in reduction.
8173
// The order in which the atomic operations are performed may be arbitrary and

0 commit comments

Comments
 (0)