Skip to content

Commit

Permalink
Fixed deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ldh4 committed Nov 27, 2024
1 parent 2421c89 commit eedbe18
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions simd/src/Kokkos_SIMD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,20 +207,22 @@ using native_abi = typename ForSpace<Space>::template simd_abi<N>;

#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4
template <class Space>
using ForSpace KOKKOS_DEPRECATED =
typename Impl::ForSpace<typename Space::execution_space>::type;
using ForSpace = typename Impl::ForSpace<typename Space::execution_space>::type;

template <class T>
using native KOKKOS_DEPRECATED = ForSpace<Kokkos::DefaultExecutionSpace>;
using native = ForSpace<Kokkos::DefaultExecutionSpace>;
#endif

} // namespace simd_abi

#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4
template <class T>
using native_simd KOKKOS_DEPRECATED = basic_simd<T, simd_abi::native<T>>;
using native_simd KOKKOS_DEPRECATED_WITH_COMMENT(
"Temporarily use Impl::simd<T> instead") =
basic_simd<T, simd_abi::native<T>>;
template <class T>
using native_simd_mask KOKKOS_DEPRECATED =
using native_simd_mask KOKKOS_DEPRECATED_WITH_COMMENT(
"Temporarily use Impl::simd_mask<T> instead") =
basic_simd_mask<T, simd_abi::native<T>>;

template <class T, class Abi>
Expand Down

0 comments on commit eedbe18

Please sign in to comment.