diff --git a/src/kokkos_abstraction.hpp b/src/kokkos_abstraction.hpp index 3ad0cf15a820..ecb4ff1b6a74 100644 --- a/src/kokkos_abstraction.hpp +++ b/src/kokkos_abstraction.hpp @@ -195,6 +195,8 @@ struct DispatchType { static constexpr bool is_ParFor = std::is_same::value; + static constexpr bool is_ParRed = + std::is_same::value; static constexpr bool is_ParScan = std::is_same::value; @@ -219,7 +221,8 @@ struct DispatchType { // for now this is guaranteed to be par_for_inner, when par_reduce_inner is // supported need to check return PT::simd; - } else if constexpr (IsMDRange) { + } else if constexpr (IsMDRange || is_ParRed) { + // par_reduce does not currently work with either team-based patterns return PT::md; } else if constexpr (std::is_same_v) { return PT::outer;