Skip to content

Commit 389fe9b

Browse files
committed
Remove guarding macro around has_known_identity and known_identity
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 0b2702b commit 389fe9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/include/CL/sycl/ONEAPI/reduction.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,23 +1647,25 @@ inline constexpr AccumulatorT known_identity_v =
16471647
// Currently, the type traits defined below correspond to SYCL 1.2.1 ONEAPI
16481648
// reduction extension. That may be changed later when SYCL 2020 reductions
16491649
// are implemented.
1650-
#if SYCL_LANGUAGE_VERSION >= 202001
16511650
template <typename BinaryOperation, typename AccumulatorT>
16521651
struct has_known_identity
16531652
: ONEAPI::has_known_identity<BinaryOperation, AccumulatorT> {};
16541653

1654+
#if __cplusplus >= 201703L
16551655
template <typename BinaryOperation, typename AccumulatorT>
16561656
inline constexpr bool has_known_identity_v =
16571657
has_known_identity<BinaryOperation, AccumulatorT>::value;
1658+
#endif
16581659

16591660
template <typename BinaryOperation, typename AccumulatorT>
16601661
struct known_identity : ONEAPI::known_identity<BinaryOperation, AccumulatorT> {
16611662
};
16621663

1664+
#if __cplusplus >= 201703L
16631665
template <typename BinaryOperation, typename AccumulatorT>
16641666
inline constexpr AccumulatorT known_identity_v =
16651667
known_identity<BinaryOperation, AccumulatorT>::value;
1666-
#endif // SYCL_LANGUAGE_VERSION >= 202001
1668+
#endif
16671669

16681670
} // namespace sycl
16691671
} // __SYCL_INLINE_NAMESPACE(cl)

0 commit comments

Comments
 (0)