Skip to content

Commit

Permalink
fix illegal memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Nov 22, 2024
1 parent fc0426d commit d997656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/sampling/neighbor_sampling_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ neighbor_sample_impl(raft::handle_t const& handle,

thrust::transform(handle.get_thrust_policy(),
thrust::make_counting_iterator<edge_t>(0),
thrust::make_counting_iterator<edge_t>(result_offsets->size()),
thrust::make_counting_iterator<edge_t>(result_offsets->size() - 1),
result_offsets->begin() + 1,
[result_labels = raft::device_span<label_t const>(
cp_result_labels->data(), cp_result_labels->size())] __device__(auto idx) {
Expand Down

0 comments on commit d997656

Please sign in to comment.