Skip to content

Commit da518f9

Browse files
committed
[SYCL] Use detail::is_arithmetic instead of std::
Should fix regression in fp16 reduction. Signed-off-by: John Pennycook <[email protected]>
1 parent b072471 commit da518f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ template <typename Group, typename V, typename T, class BinaryOperation>
536536
detail::enable_if_t<(detail::is_sub_group<Group>::value &&
537537
std::is_trivially_copyable<T>::value &&
538538
std::is_trivially_copyable<V>::value &&
539-
(!std::is_arithmetic<T>::value ||
540-
!std::is_arithmetic<V>::value ||
539+
(!detail::is_arithmetic<T>::value ||
540+
!detail::is_arithmetic<V>::value ||
541541
!detail::is_native_op<T, BinaryOperation>::value)),
542542
T>
543543
reduce(Group g, V x, T init, BinaryOperation op) {

0 commit comments

Comments
 (0)