Skip to content

Commit

Permalink
Update cpp/src/neighbors/detail/cagra/search_single_cta_kernel-inl.cuh
Browse files Browse the repository at this point in the history
Co-authored-by: Artem M. Chirkin <[email protected]>
  • Loading branch information
enp1s0 and achirkin authored Dec 3, 2024
1 parent e8ad300 commit 4ad78b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ RAFT_DEVICE_INLINE_FUNCTION void move_invalid_to_end_of_list(IdxT* const index_a
} else {
// Check if the index is invalid
const auto I_found_invalid = (index == invalid_index);
const auto who_has_invalid = __ballot_sync(~0u, I_found_invalid);
const auto who_has_invalid = raft::ballot(I_found_invalid);
// if a value that is loaded by a smaller lane id thread, shift the array
if (who_has_invalid << (warp_size - lane_id)) {
index_array[i - 1] = index;
Expand Down

0 comments on commit 4ad78b3

Please sign in to comment.