Skip to content

Commit

Permalink
fix a potential build error
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Jan 7, 2025
1 parent e0d5160 commit 2ac06ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpp/src/sampling/sampling_post_processing_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1391,12 +1391,10 @@ compute_vertex_renumber_map(
[offsets = *vertex_type_offsets] __device__(auto lhs, auto rhs) {
auto lhs_v_type = thrust::distance(
offsets.begin() + 1,
thrust::upper_bound(
thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(lhs)));
thrust::upper_bound(thrust::seq, offsets.begin() + 1, offsets.end(), lhs));
auto rhs_v_type = thrust::distance(
offsets.begin() + 1,
thrust::upper_bound(
thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(rhs)));
thrust::upper_bound(thrust::seq, offsets.begin() + 1, offsets.end(), rhs));
return lhs_v_type < rhs_v_type;
});
}
Expand Down

0 comments on commit 2ac06ed

Please sign in to comment.