Skip to content

Commit f2aef9b

Browse files
committed
Add comments
1 parent edd129e commit f2aef9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ class open_addressing_ref_impl {
12191219
exists[i] = probing_tile.ballot(equals[i]);
12201220
}
12211221

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

@@ -1251,7 +1252,7 @@ class open_addressing_ref_impl {
12511252
matche_offset += num_matches[i];
12521253
}
12531254
}
1254-
1255+
// Special handling for outer cases where no match is found
12551256
if constexpr (IsOuter) {
12561257
if (!running) {
12571258
if (!found_match and probing_tile.thread_rank() == 0) {

0 commit comments

Comments
 (0)