Skip to content

Commit

Permalink
OpenMPTarget: Honor user request for iteration in MDRange.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulkumar Gayatri committed Apr 11, 2024
1 parent 832e8e6 commit a661856
Show file tree
Hide file tree
Showing 4 changed files with 685 additions and 359 deletions.
3 changes: 2 additions & 1 deletion core/src/OpenMPTarget/Kokkos_OpenMPTarget.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ struct DeviceTypeTraits<::Kokkos::Experimental::OpenMPTarget> {
/*--------------------------------------------------------------------------*/

#include <OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp>
#include <OpenMPTarget/Kokkos_OpenMPTarget_Parallel_MDRange.hpp>
#include <OpenMPTarget/Kokkos_OpenMPTarget_ParallelFor_MDRange.hpp>
#include <OpenMPTarget/Kokkos_OpenMPTarget_ParallelReduce_MDRange.hpp>
#include <OpenMPTarget/Kokkos_OpenMPTarget_Task.hpp>

/*--------------------------------------------------------------------------*/
Expand Down
5 changes: 5 additions & 0 deletions core/src/OpenMPTarget/Kokkos_OpenMPTarget_MDRangePolicy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
namespace Kokkos {
namespace Impl {

using OpenMPTargetIterateLeft = std::integral_constant<Iterate, Iterate::Left>;
using OpenMPTargetIterateRight =
std::integral_constant<Iterate, Iterate::Right>;

template <typename Rank,
::Kokkos::Impl::TeamMDRangeThreadAndVector ThreadAndVector>
struct ThreadAndVectorNestLevel<Rank, Kokkos::Experimental::OpenMPTarget,
Expand All @@ -30,4 +34,5 @@ struct ThreadAndVectorNestLevel<Rank, Kokkos::Experimental::OpenMPTarget,

} // namespace Impl
} // namespace Kokkos

#endif

0 comments on commit a661856

Please sign in to comment.