Skip to content

Commit

Permalink
2392 missed a case where __KOKKOSBATCHED_PROMOTION__ was defined (#2396)
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Pearson <[email protected]>
  • Loading branch information
cwpearson authored Oct 25, 2024
1 parent b0a477f commit ebb5e40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions batched/KokkosBatched_Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@

// no experimental name space guard for trilinos

#ifdef _MSC_VER
#if defined(KOKKOS_COMPILER_MSVC)
#define KOKKOSBATCHED_IMPL_PROMOTION \
(__pragma(message("warning: __KOKKOSBATCHED_PROMOTION__ is deprecated and will be removed in a future version")) 1)
#else
#elif defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG)
#define KOKKOSBATCHED_IMPL_PROMOTION \
(__extension__({ \
_Pragma("GCC warning \"__KOKKOSBATCHED_PROMOTION__ is deprecated and will be removed in a future version\""); \
1; \
}))
#else
#define KOKKOSBATCHED_IMPL_PROMOTION 1 // no good way to deprecate?
#endif

#define __KOKKOSBATCHED_PROMOTION__ KOKKOSBATCHED_IMPL_PROMOTION
Expand Down

0 comments on commit ebb5e40

Please sign in to comment.