Skip to content

Commit

Permalink
deprecate __KOKKOSBATCHED_PROMOTION__ (#2392)
Browse files Browse the repository at this point in the history
* deprecate __KOKKOSBATCHED_PROMOTION__

Signed-off-by: Carl Pearson <cwpears@sandia.gov>

* __KOKKOSBATCHED_PROMOTION___DEPRECATED_MACRO -> KOKKOSBATCHED_IMPL_PROMOTION

Signed-off-by: Carl Pearson <cwpears@sandia.gov>

---------

Signed-off-by: Carl Pearson <cwpears@sandia.gov>
  • Loading branch information
cwpearson authored Oct 21, 2024
1 parent da828b7 commit 7b547b8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion batched/KokkosBatched_Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@
/// \author Kyungjoo Kim (kyukim@sandia.gov)

// no experimental name space guard for trilinos
#define __KOKKOSBATCHED_PROMOTION__ 1

#ifdef _MSC_VER
#define KOKKOSBATCHED_IMPL_PROMOTION \
(__pragma(message("warning: __KOKKOSBATCHED_PROMOTION__ is deprecated and will be removed in a future version")) 1)
#else
#define KOKKOSBATCHED_IMPL_PROMOTION \
(__extension__({ \
_Pragma("GCC warning \"__KOKKOSBATCHED_PROMOTION__ is deprecated and will be removed in a future version\""); \
1; \
}))
#endif

#define __KOKKOSBATCHED_PROMOTION__ KOKKOSBATCHED_IMPL_PROMOTION

#include <iomanip>
#include <random>
Expand Down

0 comments on commit 7b547b8

Please sign in to comment.