Skip to content

Commit

Permalink
Rely on default memory traits (#169)
Browse files Browse the repository at this point in the history
* Rely on default memory traits

* Review from Yuuichi
  • Loading branch information
tpadioleau authored Oct 11, 2024
1 parent 4fe0f2e commit 770a301
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/src/KokkosFFT_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,12 @@ struct base_container_value<Kokkos::Array<ValueType, N>> {
template <typename T>
using base_container_value_type = typename base_container_value<T>::value_type;

/// \brief Helper to define a manageable View type from the original view type
/// \brief Helper to define a managed View type from a managed or unmanaged
/// View type
template <typename T>
struct manageable_view_type {
using type = Kokkos::View<typename T::data_type, typename T::array_layout,
typename T::memory_space,
Kokkos::MemoryTraits<T::memory_traits::impl_value &
~unsigned(Kokkos::Unmanaged)>>;
typename T::memory_space>;
};

/// \brief Helper to define a complex 1D View type from a real/complex 1D View
Expand Down

0 comments on commit 770a301

Please sign in to comment.