From fbb05c9bcfe6bd8c41e5725dd437fc5324898782 Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Mon, 9 Oct 2023 13:50:40 -0700 Subject: [PATCH] Fix the intra index bug in erase --- .../cuco/detail/open_addressing/open_addressing_ref_impl.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 759594ef8..0d397d288 100644 --- a/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh +++ b/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh @@ -587,7 +587,7 @@ class open_addressing_ref_impl { auto const status = (group.thread_rank() == src_lane) ? attempt_insert((storage_ref_.data() + *probing_iter)->data() + intra_window_index, - window_slots[src_lane], + window_slots[intra_window_index], this->erased_slot_sentinel()) : insert_result::CONTINUE;