Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Sep 19, 2023
1 parent ed7b1a4 commit 52e2f57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/sampling/sampling_post_processing_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1743,10 +1743,11 @@ sort_sampled_edgelist(
(*edgelist_label_hop_offsets).begin(),
(*edgelist_label_hop_offsets).end(),
size_t{0});
thrust::for_each(
thrust::transform(
handle.get_thrust_policy(),
thrust::make_counting_iterator(size_t{0}),
thrust::make_counting_iterator(num_labels * num_hops),
(*edgelist_label_hop_offsets).begin(),
[edgelist_label_offsets = edgelist_label_offsets
? thrust::make_optional(std::get<0>(*edgelist_label_offsets))
: thrust::nullopt,
Expand Down

0 comments on commit 52e2f57

Please sign in to comment.