|
30 | 30 | #include <sycl/nd_item.hpp>
|
31 | 31 | #include <sycl/nd_range.hpp>
|
32 | 32 | #include <sycl/property_list.hpp>
|
| 33 | +#include <sycl/reduction_forward.hpp> |
33 | 34 | #include <sycl/sampler.hpp>
|
34 | 35 | #include <sycl/stl.hpp>
|
35 | 36 |
|
@@ -268,43 +269,9 @@ class RoundedRangeKernelWithKH {
|
268 | 269 | KernelType KernelFunc;
|
269 | 270 | };
|
270 | 271 |
|
271 |
| -template <typename T, class BinaryOperation, int Dims, size_t Extent, |
272 |
| - typename RedOutVar> |
273 |
| -class reduction_impl_algo; |
274 |
| - |
275 | 272 | using sycl::detail::enable_if_t;
|
276 | 273 | using sycl::detail::queue_impl;
|
277 | 274 |
|
278 |
| -// Reductions implementation need access to private members of handler. Those |
279 |
| -// are limited to those below. |
280 |
| -namespace reduction { |
281 |
| -inline void finalizeHandler(handler &CGH); |
282 |
| -template <class FunctorTy> void withAuxHandler(handler &CGH, FunctorTy Func); |
283 |
| -} // namespace reduction |
284 |
| - |
285 |
| -template <typename KernelName, int Dims, typename PropertiesT, |
286 |
| - typename KernelType, typename Reduction> |
287 |
| -void reduction_parallel_for(handler &CGH, |
288 |
| - std::shared_ptr<detail::queue_impl> Queue, |
289 |
| - range<Dims> Range, PropertiesT Properties, |
290 |
| - Reduction Redu, KernelType KernelFunc); |
291 |
| - |
292 |
| -template <typename KernelName, int Dims, typename PropertiesT, |
293 |
| - typename KernelType, typename Reduction> |
294 |
| -void reduction_parallel_for(handler &CGH, |
295 |
| - std::shared_ptr<detail::queue_impl> Queue, |
296 |
| - nd_range<Dims> Range, PropertiesT Properties, |
297 |
| - Reduction Redu, KernelType KernelFunc); |
298 |
| - |
299 |
| -template <typename KernelName, int Dims, typename PropertiesT, |
300 |
| - typename... RestT> |
301 |
| -void reduction_parallel_for(handler &CGH, |
302 |
| - std::shared_ptr<detail::queue_impl> Queue, |
303 |
| - nd_range<Dims> Range, PropertiesT Properties, |
304 |
| - RestT... Rest); |
305 |
| - |
306 |
| -template <typename T> struct IsReduction; |
307 |
| -template <typename FirstT, typename... RestT> struct AreAllButLastReductions; |
308 | 275 | } // namespace detail
|
309 | 276 |
|
310 | 277 | /// Command group handler class.
|
|
0 commit comments