Skip to content

Commit b6ae2e5

Browse files
committed
add more macros
Signed-off-by: Fedorov, Andrey <[email protected]>
1 parent 8a07d59 commit b6ae2e5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

sycl/include/CL/sycl/detail/group_sort_impl.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#pragma once
1212

13+
#if __cplusplus >= 201703L
1314
#include <CL/sycl/detail/helpers.hpp>
1415

1516
#ifdef __SYCL_DEVICE_ONLY__
@@ -252,3 +253,4 @@ void merge_sort(Group group, Iter first, const std::size_t n, Compare comp,
252253
} // namespace sycl
253254
} // __SYCL_INLINE_NAMESPACE(cl)
254255
#endif
256+
#endif // __cplusplus >=201703L

sycl/include/sycl/ext/oneapi/experimental/group_helpers_sorters.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#pragma once
1010

11+
#if __cplusplus >= 201703L
1112
#include <CL/sycl/detail/group_sort_impl.hpp>
1213

1314
__SYCL_INLINE_NAMESPACE(cl) {
@@ -97,3 +98,4 @@ template <typename Compare = std::less<>> class default_sorter {
9798
} // namespace ext
9899
} // namespace sycl
99100
} // __SYCL_INLINE_NAMESPACE(cl)
101+
#endif // __cplusplus >=201703L

sycl/include/sycl/ext/oneapi/group_sort.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#pragma once
1010

11+
#if __cplusplus >= 201703L
1112
#include <CL/sycl/detail/defines_elementary.hpp>
1213
#include <CL/sycl/detail/group_sort_impl.hpp>
1314
#include <CL/sycl/detail/type_traits.hpp>
@@ -141,3 +142,4 @@ joint_sort(experimental::group_with_scratchpad<Group, Extent> exec, Iter first,
141142
} // namespace ext
142143
} // namespace sycl
143144
} // __SYCL_INLINE_NAMESPACE(cl)
145+
#endif // __cplusplus >=201703L

0 commit comments

Comments
 (0)