Skip to content

Commit

Permalink
example/gmres: Use Kokkos::abs for Kokkos::complex types
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Nov 18, 2021
1 parent 21b2519 commit 64f2d31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/gmres/gmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ Kokkos::Experimental::half_t fabs(
// https://github.com/kokkos/kokkos-kernels/issues/1172
template <class T>
KOKKOS_INLINE_FUNCTION T fabs(const Kokkos::complex<T> &x) {
using AT = Kokkos::Details::ArithTraits<Kokkos::complex<T>>;
return AT::abs(x);
return Kokkos::abs(x);
}
} // namespace Experimental
} // namespace Kokkos
Expand Down

0 comments on commit 64f2d31

Please sign in to comment.