Skip to content

Commit

Permalink
Fix vectorization error on copy algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Nov 9, 2024
1 parent 342d373 commit 0ed00c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/core/algorithms/include/hpx/parallel/algorithms/copy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,10 @@ namespace hpx::parallel {
std::advance(dest, val);
util::loop_n<std::decay_t<ExPolicy>>(part_begin, part_size,
[&dest](zip_iterator it) mutable {
if (get<1>(*it))
*dest++ = get<0>(*it);
if (get<1>(*it)){
*dest = get<0>(*it);
dest++;
}
});
};

Expand Down

0 comments on commit 0ed00c7

Please sign in to comment.