Skip to content

Commit

Permalink
Fix a bug in ref initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Dec 13, 2023
1 parent db9a93f commit 4080ea5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,12 @@ class open_addressing_ref_impl {
template <typename CG>
__device__ constexpr void initialize(CG const& tile) noexcept
{
auto tid = tile.thread_rank();
auto tid = tile.thread_rank();
auto* const windows_ptr = this->storage_ref().data();
while (tid < static_cast<size_type>(this->window_extent())) {
auto& window = *(windows_ptr + tid);
#pragma unroll
for (auto& slot : this->storage_ref_[tid]) {
for (auto& slot : window) {
slot = this->empty_slot_sentinel();
}
tid += tile.size();
Expand Down

0 comments on commit 4080ea5

Please sign in to comment.