Skip to content

Commit

Permalink
use 'label_list' as a map form 'comm_rank' to 'label_map'
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Nov 5, 2024
1 parent 8cb0c94 commit 77303d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/sampling/detail/conversion_utilities.cu
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ rmm::device_uvector<int32_t> flatten_label_map(

thrust::fill(handle.get_thrust_policy(), label_map.begin(), label_map.end(), int32_t{0});
thrust::scatter(handle.get_thrust_policy(),
std::get<0>(label_to_output_comm_rank).begin(),
std::get<0>(label_to_output_comm_rank).end(),
std::get<1>(label_to_output_comm_rank).begin(),
std::get<1>(label_to_output_comm_rank).end(),
std::get<0>(label_to_output_comm_rank).begin(),
label_map.begin());

return label_map;
Expand Down

0 comments on commit 77303d5

Please sign in to comment.