Skip to content

Commit d1ff0ad

Browse files
committed
Common - ArithTraits: moving from Kokkos to KokkosKernels
This simply moves the class to a new namespace to avoid having it in the Kokkos namespace. Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
1 parent b778119 commit d1ff0ad

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

common/src/Kokkos_ArithTraits.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ KOKKOS_FORCEINLINE_FUNCTION IntType intPowUnsigned(const IntType x, const IntTyp
187187

188188
} // namespace
189189

190-
namespace Kokkos {
190+
namespace KokkosKernels {
191191

192192
// Macro to automate the wrapping of Kokkos Mathematical Functions
193193
#define KOKKOSKERNELS_ARITHTRAITS_REAL_FP(FUNC_QUAL) \
@@ -1644,9 +1644,15 @@ struct [[deprecated]] ArithTraits<qd_real> {
16441644
};
16451645
#endif // HAVE_KOKKOS_QD
16461646

1647+
} // namespace KokkosKernels
1648+
1649+
namespace Kokkos {
1650+
template <typename T>
1651+
using ArithTraits [[deprecated("Use KokkosKernels::ArithTraits instead")]] = ::KokkosKernels::ArithTraits<T>;
1652+
16471653
namespace Details {
16481654
template <typename T>
1649-
using ArithTraits [[deprecated("Use Kokkos::ArithTraits instead")]] = ::Kokkos::ArithTraits<T>;
1655+
using ArithTraits [[deprecated("Use KokkosKernels::ArithTraits instead")]] = ::KokkosKernels::ArithTraits<T>;
16501656

16511657
} // namespace Details
16521658
} // namespace Kokkos

0 commit comments

Comments
 (0)