Skip to content

Commit

Permalink
fixes errors?
Browse files Browse the repository at this point in the history
Signed-off-by: Hari Hara Naveen S <[email protected]>
  • Loading branch information
Johan511 committed Jul 18, 2023
1 parent 3366c65 commit a233df2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions libs/core/algorithms/include/hpx/parallel/unseq/loop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace hpx::parallel::util {
InIter HPX_RESTRICT it, std::size_t num, F&& f)
{
// clang-format off
HPX_IVDEP HPX_UNROLL HPX_VECTORIZE
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
{
HPX_INVOKE(f, it);
Expand Down Expand Up @@ -61,7 +61,7 @@ namespace hpx::parallel::util {
InIter HPX_RESTRICT it, std::size_t num, F&& f)
{
// clang-format off
HPX_IVDEP HPX_UNROLL HPX_VECTORIZE
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
{
HPX_INVOKE(f, *it);
Expand Down Expand Up @@ -149,7 +149,7 @@ namespace hpx::parallel::util {
std::size_t const num = std::distance(it1, last1);

// clang-format off
HPX_IVDEP HPX_UNROLL HPX_VECTORIZE
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
{
HPX_INVOKE(f, it1, it2);
Expand Down Expand Up @@ -177,7 +177,7 @@ namespace hpx::parallel::util {
F&& f)
{
// clang-format off
HPX_IVDEP HPX_UNROLL HPX_VECTORIZE
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
{
HPX_INVOKE(f, *it, base_idx);
Expand Down
34 changes: 17 additions & 17 deletions libs/core/algorithms/include/hpx/parallel/unseq/reduce_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace hpx::parallel::util::detail {
{
#if defined(HPX_HAVE_VECTOR_REDUCTION)
template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_plus_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -99,7 +99,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_minus_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -113,7 +113,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_multiplies_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -127,7 +127,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_bit_and_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -141,7 +141,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_bit_or_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -155,7 +155,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_bit_xor_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -169,7 +169,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_logical_and_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -183,7 +183,7 @@ namespace hpx::parallel::util::detail {
}

template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_logical_or_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce /* */, Convert conv)
{
Expand All @@ -197,7 +197,7 @@ namespace hpx::parallel::util::detail {
}
#endif
template <typename Iter1, typename T, typename Convert, typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_not_omp_reduction_v<T, Reduce>, T>
reduce(Iter1 it, std::size_t count, T init, Reduce r, Convert conv)
{
Expand Down Expand Up @@ -274,7 +274,7 @@ namespace hpx::parallel::util::detail {
#if defined(HPX_HAVE_VECTOR_REDUCTION)
template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_plus_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand All @@ -290,7 +290,7 @@ namespace hpx::parallel::util::detail {

template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_minus_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand All @@ -306,7 +306,7 @@ namespace hpx::parallel::util::detail {

template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_multiplies_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand All @@ -322,7 +322,7 @@ namespace hpx::parallel::util::detail {

template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_bit_and_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand All @@ -338,7 +338,7 @@ namespace hpx::parallel::util::detail {

template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_bit_or_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand Down Expand Up @@ -370,7 +370,7 @@ namespace hpx::parallel::util::detail {

template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_logical_and_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand All @@ -386,7 +386,7 @@ namespace hpx::parallel::util::detail {

template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_arithmetic_logical_or_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce /* */,
Convert conv)
Expand All @@ -402,7 +402,7 @@ namespace hpx::parallel::util::detail {
#endif
template <typename Iter1, typename Iter2, typename T, typename Convert,
typename Reduce>
HPX_HOST_DEVICE HPX_FORCEINLINE static constexpr std::enable_if_t<
HPX_HOST_DEVICE HPX_FORCEINLINE static std::enable_if_t<
is_not_omp_reduction_v<T, Reduce>, T>
reduce(Iter1 it1, Iter2 it2, std::size_t count, T init, Reduce r,
Convert conv)
Expand Down

0 comments on commit a233df2

Please sign in to comment.