Skip to content

Commit

Permalink
Move definitions of OpenACCIterate{Left,Right} and `OpenACCMDRange{…
Browse files Browse the repository at this point in the history
…Begin,End,Tile}`
  • Loading branch information
dalg24 committed Dec 23, 2022
1 parent f54c04c commit c6fae3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
15 changes: 15 additions & 0 deletions core/src/OpenACC/Kokkos_OpenACC_MDRangePolicy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,19 @@ struct ThreadAndVectorNestLevel<Rank, Kokkos::Experimental::OpenACC,
} // namespace Impl
} // namespace Kokkos

namespace Kokkos::Experimental::Impl {

struct OpenACCCollapse {};
struct OpenACCTile {};
using OpenACCIterateLeft = std::integral_constant<Iterate, Iterate::Left>;
using OpenACCIterateRight = std::integral_constant<Iterate, Iterate::Right>;
template <int N>
using OpenACCMDRangeBegin = decltype(MDRangePolicy<OpenACC, Rank<N>>::m_lower);
template <int N>
using OpenACCMDRangeEnd = decltype(MDRangePolicy<OpenACC, Rank<N>>::m_upper);
template <int N>
using OpenACCMDRangeTile = decltype(MDRangePolicy<OpenACC, Rank<N>>::m_tile);

} // namespace Kokkos::Experimental::Impl

#endif
11 changes: 0 additions & 11 deletions core/src/OpenACC/Kokkos_OpenACC_ParallelFor_MDRange.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@

namespace Kokkos::Experimental::Impl {

struct OpenACCCollapse {};
struct OpenACCTile {};
using OpenACCIterateLeft = std::integral_constant<Iterate, Iterate::Left>;
using OpenACCIterateRight = std::integral_constant<Iterate, Iterate::Right>;
template <int N>
using OpenACCMDRangeBegin = decltype(MDRangePolicy<OpenACC, Rank<N>>::m_lower);
template <int N>
using OpenACCMDRangeEnd = decltype(MDRangePolicy<OpenACC, Rank<N>>::m_upper);
template <int N>
using OpenACCMDRangeTile = decltype(MDRangePolicy<OpenACC, Rank<N>>::m_tile);

template <class Functor>
void OpenACCParallelForMDRangePolicy(OpenACCCollapse, OpenACCIterateLeft,
Functor const& functor,
Expand Down

0 comments on commit c6fae3f

Please sign in to comment.