Skip to content

Commit f35d63e

Browse files
committed
max and min now use MinMaxAtomicSupportFactory
These functions were using ArithmeticAtomicSupportFactory, which disables atomics for floating point types
1 parent d82f3a9 commit f35d63e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tensor/libtensor/source/reductions/reduction_atomic_support.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ template <typename fnT, typename T> struct MinMaxAtomicSupportFactory
117117
};
118118

119119
template <typename fnT, typename T>
120-
struct MaxAtomicSupportFactory : public ArithmeticAtomicSupportFactory<fnT, T>
120+
struct MaxAtomicSupportFactory : public MinMaxAtomicSupportFactory<fnT, T>
121121
{
122122
};
123123

124124
template <typename fnT, typename T>
125-
struct MinAtomicSupportFactory : public ArithmeticAtomicSupportFactory<fnT, T>
125+
struct MinAtomicSupportFactory : public MinMaxAtomicSupportFactory<fnT, T>
126126
{
127127
};
128128

0 commit comments

Comments
 (0)