Skip to content

Commit

Permalink
Update bindings/CXX11/adios2/cxx11/kokkos_interop.h
Browse files Browse the repository at this point in the history
Co-authored-by: Ana Gainaru <[email protected]>
  • Loading branch information
germasch and anagainaru committed Jul 5, 2022
1 parent 2ca6754 commit f5dc4f0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions bindings/CXX11/adios2/cxx11/kokkos_interop.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ namespace adios2
namespace detail
{

template <typename T>
struct is_kokkos_view : std::false_type
{
};

template <typename... Ts>
struct is_kokkos_view<Kokkos::View<Ts...>> : std::true_type
{
};

template <typename T>
struct memspace_kokkos_to_adios2;

Expand All @@ -43,8 +33,8 @@ struct memspace_kokkos_to_adios2<Kokkos::CudaSpace>
} // namespace detail

template <typename T>
struct ndarray_traits<T, typename std::enable_if<detail::is_kokkos_view<
typename std::remove_cv<T>::type>::value>::type>
struct ndarray_traits<T,
typename std::enable_if<Kokkos::is_view<T>::value>::type>
: std::true_type
{
using value_type = typename T::value_type;
Expand Down

0 comments on commit f5dc4f0

Please sign in to comment.