Skip to content

Commit

Permalink
Fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Oct 11, 2023
1 parent a8238e3 commit 037baf2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
12 changes: 8 additions & 4 deletions include/cuco/detail/static_map/static_map.inl
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ template <class Key,
void static_map<Key, T, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash(
cuda_stream_ref stream)
{
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel());
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel(),
this->erased_key_sentinel());
this->impl_->rehash(*this, is_filled, stream);
}

Expand All @@ -433,7 +434,8 @@ template <class Key,
void static_map<Key, T, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash(
size_type capacity, cuda_stream_ref stream)
{
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel());
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel(),
this->erased_key_sentinel());
auto const extent = make_window_extent<static_map>(capacity);
this->impl_->rehash(extent, *this, is_filled, stream);
}
Expand All @@ -449,7 +451,8 @@ template <class Key,
void static_map<Key, T, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash_async(
cuda_stream_ref stream)
{
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel());
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel(),
this->erased_key_sentinel());
this->impl_->rehash_async(*this, is_filled, stream);
}

Expand All @@ -464,7 +467,8 @@ template <class Key,
void static_map<Key, T, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash_async(
size_type capacity, cuda_stream_ref stream)
{
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel());
auto const is_filled = static_map_ns::detail::slot_is_filled<Key, T>(this->empty_key_sentinel(),
this->erased_key_sentinel());
auto const extent = make_window_extent<static_map>(capacity);
this->impl_->rehash_async(extent, *this, is_filled, stream);
}
Expand Down
16 changes: 10 additions & 6 deletions include/cuco/detail/static_set/static_set.inl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ template <class Key,
void static_set<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash(
cuda_stream_ref stream)
{
auto const is_filled = static_set_ns::detail::slot_is_filled(this->empty_key_sentinel());
auto const is_filled =
static_set_ns::detail::slot_is_filled(this->empty_key_sentinel(), this->erased_key_sentinel());
this->impl_->rehash(*this, is_filled, stream);
}

Expand All @@ -359,8 +360,9 @@ template <class Key,
void static_set<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash(
size_type capacity, cuda_stream_ref stream)
{
auto const is_filled = static_set_ns::detail::slot_is_filled(this->empty_key_sentinel());
auto const extent = make_window_extent<static_set>(capacity);
auto const is_filled =
static_set_ns::detail::slot_is_filled(this->empty_key_sentinel(), this->erased_key_sentinel());
auto const extent = make_window_extent<static_set>(capacity);
this->impl_->rehash(extent, *this, is_filled, stream);
}

Expand All @@ -374,7 +376,8 @@ template <class Key,
void static_set<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash_async(
cuda_stream_ref stream)
{
auto const is_filled = static_set_ns::detail::slot_is_filled(this->empty_key_sentinel());
auto const is_filled =
static_set_ns::detail::slot_is_filled(this->empty_key_sentinel(), this->erased_key_sentinel());
this->impl_->rehash_async(*this, is_filled, stream);
}

Expand All @@ -388,8 +391,9 @@ template <class Key,
void static_set<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::rehash_async(
size_type capacity, cuda_stream_ref stream)
{
auto const is_filled = static_set_ns::detail::slot_is_filled(this->empty_key_sentinel());
auto const extent = make_window_extent<static_set>(capacity);
auto const is_filled =
static_set_ns::detail::slot_is_filled(this->empty_key_sentinel(), this->erased_key_sentinel());
auto const extent = make_window_extent<static_set>(capacity);
this->impl_->rehash_async(extent, *this, is_filled, stream);
}

Expand Down

0 comments on commit 037baf2

Please sign in to comment.