Skip to content

Commit

Permalink
omp does not like !=
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 19, 2023
1 parent dec5669 commit 4b9e667
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ namespace hpx::parallel::util::detail {
i += block_size)
{
HPX_VECTORIZE
for (std::size_t j = 0; j != block_size; ++j)
for (std::size_t j = 0; j < block_size; ++j)
{
tblock[j] = HPX_INVOKE(
r, tblock[j], HPX_INVOKE(conv, *(it + j)));
Expand All @@ -251,7 +251,7 @@ namespace hpx::parallel::util::detail {
}

// Merge
for (std::size_t i = 0; i != block_size; ++i)
for (std::size_t i = 0; i < block_size; ++i)
{
init = HPX_INVOKE(r, init, tblock[i]);
}
Expand Down Expand Up @@ -425,7 +425,7 @@ namespace hpx::parallel::util::detail {
T* tblock = reinterpret_cast<T*>(block);

// Initialize block[i] = r(f(2*i), f(2*i + 1))
for (std::size_t i = 0; i != block_size; ++i)
for (std::size_t i = 0; i < block_size; ++i)
{
hpx::construct_at(tblock + i,
HPX_INVOKE(r, HPX_INVOKE(conv, *it1, *it2),
Expand All @@ -441,7 +441,7 @@ namespace hpx::parallel::util::detail {
i += block_size)
{
HPX_VECTORIZE
for (std::size_t j = 0; j != block_size; ++j)
for (std::size_t j = 0; j < block_size; ++j)
{
tblock[j] = HPX_INVOKE(r, tblock[j],
HPX_INVOKE(conv, *(it1 + j), *(it2 + j)));
Expand All @@ -462,14 +462,14 @@ namespace hpx::parallel::util::detail {
}

// Merge
for (std::size_t i = 0; i != block_size; ++i)
for (std::size_t i = 0; i < block_size; ++i)
{
init = HPX_INVOKE(r, init, tblock[i]);
}

// Cleanup resources
HPX_VECTORIZE
for (std::size_t i = 0; i != block_size; ++i)
for (std::size_t i = 0; i < block_size; ++i)
{
std::destroy_at(std::addressof(tblock[i]));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace hpx::parallel::util {
{
// clang-format off
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
for (std::size_t i = 0; i < num; ++i)
{
*dest = HPX_INVOKE(f, it);
++it, ++dest;
Expand Down Expand Up @@ -86,7 +86,7 @@ namespace hpx::parallel::util {
{
// clang-format off
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
for (std::size_t i = 0; i < num; ++i)
{
*dest = HPX_INVOKE(f, *it);
++it, ++dest;
Expand Down Expand Up @@ -251,7 +251,7 @@ namespace hpx::parallel::util {
{
// clang-format off
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
for (std::size_t i = 0; i < num; ++i)
{
*dest = HPX_INVOKE(f, first1, first2);
++first1, ++first2, ++dest;
Expand Down Expand Up @@ -410,7 +410,7 @@ namespace hpx::parallel::util {
{
// clang-format off
HPX_VECTORIZE
for (std::size_t i = 0; i != num; ++i)
for (std::size_t i = 0; i < num; ++i)
{
*dest = HPX_INVOKE(f, *first1, *first2);
++first1, ++first2, ++dest;
Expand Down

0 comments on commit 4b9e667

Please sign in to comment.