File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 29
29
#include < CL/sycl/exception.hpp>
30
30
#include < CL/sycl/feature_test.hpp>
31
31
#include < CL/sycl/group.hpp>
32
+ #include < CL/sycl/group_algorithm.hpp>
32
33
#include < CL/sycl/group_local_memory.hpp>
33
34
#include < CL/sycl/handler.hpp>
34
35
#include < CL/sycl/id.hpp>
Original file line number Diff line number Diff line change 11
11
12
12
__SYCL_INLINE_NAMESPACE (cl) {
13
13
namespace sycl {
14
+
15
+ template <typename T = void > using plus = std::plus<T>;
16
+
14
17
namespace ONEAPI {
15
18
16
19
template <typename T = void > struct minimum {
Original file line number Diff line number Diff line change
1
+ // ==----------- group_algorithm.hpp ------------------------------------==//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
9
+ #pragma once
10
+ #include < CL/sycl/ONEAPI/group_algorithm.hpp>
11
+
12
+ __SYCL_INLINE_NAMESPACE (cl) {
13
+ namespace sycl {
14
+ template <typename ... Args>
15
+ auto reduce_over_group (Args&&... args)
16
+ -> decltype(ONEAPI::reduce(std::forward<Args>(args)...)) {
17
+ return ONEAPI::reduce (std::forward<Args>(args)...);
18
+ }
19
+ } // namespace sycl
20
+ } // __SYCL_INLINE_NAMESPACE(cl)
You can’t perform that action at this time.
0 commit comments