Skip to content

Commit 04a360a

Browse files
authored
[SYCL] Add a new header file with the reduction class definition (#1558)
The patch only adds the new header file, it does not implement the reduction functionality in parallel_for() yet. Inside sycl::intel namespace for the expressions like detail::something, compiler looks for something in sycl::intel::detail instead of sycl::detail. Expressions detail::something were changed to sycl::detail::something Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 7659e45 commit 04a360a

File tree

6 files changed

+703
-123
lines changed

6 files changed

+703
-123
lines changed

sycl/include/CL/sycl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <CL/sycl/intel/builtins.hpp>
2727
#include <CL/sycl/intel/function_pointer.hpp>
2828
#include <CL/sycl/intel/group_algorithm.hpp>
29+
#include <CL/sycl/intel/reduction.hpp>
2930
#include <CL/sycl/intel/sub_group.hpp>
3031
#include <CL/sycl/item.hpp>
3132
#include <CL/sycl/kernel.hpp>

sycl/include/CL/sycl/intel/functional.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ template <> struct maximum<void> {
5353
#endif
5454

5555
template <typename T = void> using plus = std::plus<T>;
56+
template <typename T = void> using bit_or = std::bit_or<T>;
57+
template <typename T = void> using bit_xor = std::bit_xor<T>;
58+
template <typename T = void> using bit_and = std::bit_and<T>;
5659

5760
} // namespace intel
5861

0 commit comments

Comments
 (0)