Skip to content

Commit ab84fce

Browse files
committed
SYCL: Add the header file with the reduction class definition
The patch only adds the new header file, it does not implement the reduction functionality in parallel_for() yet. Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 9b1d8b8 commit ab84fce

File tree

4 files changed

+567
-0
lines changed

4 files changed

+567
-0
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)