Skip to content

Commit

Permalink
Correct iteration in host-to-host copies
Browse files Browse the repository at this point in the history
  • Loading branch information
wphicks committed Oct 2, 2023
1 parent a8b17a8 commit 722425c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/raft/core/detail/copy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ mdspan_copyable_t<DstType, SrcType> copy(resources const& res, DstType&& dst, Sr
// cache-oblivious implementation should work through dimensions in
// order of increasing stride.
auto dim = std::size_t{};
while ((indices[dim]++) == src.extent(dim)) {
while ((++indices[dim]) == src.extent(dim)) {
indices[dim] = typename config::index_type{};
++dim;
}
Expand Down

0 comments on commit 722425c

Please sign in to comment.