Skip to content

Commit

Permalink
make_zip_iterator should be on a make_tuple (#1857)
Browse files Browse the repository at this point in the history
21.12 builds are failing.  This is a potential culprit.  The zip iterator should be passed a tuple.  Looks like this bug was introduced during 21.10, I'm fixing it here so that it can be propagated to 21.12 also.

Authors:
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Seunghwa Kang (https://github.com/seunghwak)

URL: #1857
  • Loading branch information
ChuckHastings authored Sep 29, 2021
1 parent 1397f6c commit 3a904b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/community/louvain.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ class Louvain {
return thrust::make_tuple(sum, subtract);
},
thrust::make_tuple(weight_t{0}, weight_t{0}),
thrust::make_zip_iterator(old_cluster_sum_v.begin(), cluster_subtract_v.begin()));
thrust::make_zip_iterator(
thrust::make_tuple(old_cluster_sum_v.begin(), cluster_subtract_v.begin())));

return std::make_tuple(std::move(old_cluster_sum_v), std::move(cluster_subtract_v));
}
Expand Down

0 comments on commit 3a904b3

Please sign in to comment.