Skip to content

Commit

Permalink
Enable single-threaded device add
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Aug 27, 2024
1 parent 36b1532 commit 26ab9f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/cuco/bloom_filter_ref.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ class bloom_filter_ref {

__host__ void clear_async(cuda::stream_ref stream = {});

// TODO
// template <class ProbeKey>
// __device__ void add(ProbeKey const& key);
template <class ProbeKey>
__device__ void add(ProbeKey const& key);

template <class CG, class ProbeKey>
__device__ void add(CG const& group, ProbeKey const& key);
Expand Down
13 changes: 13 additions & 0 deletions include/cuco/detail/bloom_filter/bloom_filter_ref.inl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ __host__ void bloom_filter_ref<Key, Extent, Scope, Hash, BlockWords, Word>::clea
impl_.clear_async(stream);
}

template <class Key,
class Extent,
cuda::thread_scope Scope,
class Hash,
std::uint32_t BlockWords,
class Word>
template <class ProbeKey>
__device__ void bloom_filter_ref<Key, Extent, Scope, Hash, BlockWords, Word>::add(
ProbeKey const& key)
{
impl_.add(key);
}

template <class Key,
class Extent,
cuda::thread_scope Scope,
Expand Down

0 comments on commit 26ab9f4

Please sign in to comment.