Skip to content

Commit

Permalink
Update cpp/src/glm/qn_mg.cu
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Adorf <sadorf@nvidia.com>
  • Loading branch information
lijinf2 and csadorf authored Sep 27, 2023
1 parent e877100 commit 1b4050c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/glm/qn_mg.cu
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ std::vector<T> distinct_mg(const raft::handle_t& handle, T* y, size_t n)
raft::copy(recv_counts_host.data(), recv_counts.data(), n_ranks, stream);

std::vector<size_t> displs(n_ranks);
for (int i = 0, pos = 0; i < n_ranks; ++i) {
size_t pos = 0;
for (int i = 0; i < n_ranks; ++i) {
displs[i] = pos;
pos += recv_counts_host[i];
}
Expand Down

0 comments on commit 1b4050c

Please sign in to comment.