Skip to content

Commit d818ac6

Browse files
dalg24yasahi-hpc
andauthored
Require KOKKOS_ENABLE_DEPRECATED_CODE_5 to be defined for including <Kokkos_ArithTraits.hpp> (#2798)
* Require KOKKOS_ENABLE_DEPRECATED_CODE_5 to be defined for including <Kokkos_ArithTraits.hpp> Signed-off-by: Damien L-G <dalg24@gmail.com> * Apply suggestion from review Co-authored-by: yasahi-hpc <57478230+yasahi-hpc@users.noreply.github.com> Signed-off-by: Damien L-G <dalg24+github@gmail.com> --------- Signed-off-by: Damien L-G <dalg24@gmail.com> Signed-off-by: Damien L-G <dalg24+github@gmail.com> Co-authored-by: yasahi-hpc <57478230+yasahi-hpc@users.noreply.github.com>
1 parent 100557b commit d818ac6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/src/Kokkos_ArithTraits.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
#include <KokkosKernels_ArithTraits.hpp>
1111

12+
#ifndef KOKKOS_ENABLE_DEPRECATED_CODE_5
13+
static_assert(false, "Header `Kokkos_ArithTraits.hpp` is deprecated, include `KokkosKernels_ArithTraits.hpp` instead");
14+
#endif
15+
1216
namespace Kokkos {
1317
template <typename T>
1418
using ArithTraits [[deprecated("Use KokkosKernels::ArithTraits from KokkosKernels_ArithTraits.hpp header instead")]] =

0 commit comments

Comments
 (0)