Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Nov 18, 2024
1 parent edd129e commit f2aef9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,7 @@ class open_addressing_ref_impl {
exists[i] = probing_tile.ballot(equals[i]);
}

// Fill the buffer if any matching keys are found
if (thrust::any_of(thrust::seq, exists, exists + bucket_size, thrust::identity{})) {
if constexpr (IsOuter) { found_match = true; }

Expand Down Expand Up @@ -1251,7 +1252,7 @@ class open_addressing_ref_impl {
matche_offset += num_matches[i];
}
}

// Special handling for outer cases where no match is found
if constexpr (IsOuter) {
if (!running) {
if (!found_match and probing_tile.thread_rank() == 0) {
Expand Down

0 comments on commit f2aef9b

Please sign in to comment.