From 5dc50ec42f0043533be1546aa4081994b6c4d59c Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Tue, 19 Nov 2024 16:14:43 -0800 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Jünger --- .../detail/open_addressing/open_addressing_ref_impl.cuh | 6 +++--- include/cuco/detail/static_set/static_set_ref.inl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh b/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh index cbf2ccf41..e2553e7da 100644 --- a/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh +++ b/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh @@ -1241,15 +1241,15 @@ class open_addressing_ref_impl { } output_idx = probing_tile.shfl(output_idx, 0); - int32_t matche_offset = 0; + int32_t matches_offset = 0; #pragma unroll buffer_size for (int32_t i = 0; i < bucket_size; ++i) { if (equals[i]) { auto const lane_offset = detail::count_least_significant_bits(exists[i], lane_id); - buffers[flushing_tile_id][output_idx + matche_offset + lane_offset] = { + buffers[flushing_tile_id][output_idx + matches_offset + lane_offset] = { probe_key, bucket_slots[i]}; } - matche_offset += num_matches[i]; + matches_offset += num_matches[i]; } } // Special handling for outer cases where no match is found diff --git a/include/cuco/detail/static_set/static_set_ref.inl b/include/cuco/detail/static_set/static_set_ref.inl index 8f4b63ba3..4d954fc8d 100644 --- a/include/cuco/detail/static_set/static_set_ref.inl +++ b/include/cuco/detail/static_set/static_set_ref.inl @@ -809,7 +809,7 @@ class operator_impl(*this); ref_.impl_.retrieve(