From 1af54b339039a2982f97ce4ba5f7bfb11fbe29a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20J=C3=BCnger?= Date: Tue, 27 Aug 2024 23:20:45 +0000 Subject: [PATCH] Remove unused code section --- .../detail/bloom_filter/bloom_filter_impl.cuh | 34 +++++-------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/include/cuco/detail/bloom_filter/bloom_filter_impl.cuh b/include/cuco/detail/bloom_filter/bloom_filter_impl.cuh index 0582e4c5b..23c8f0d02 100644 --- a/include/cuco/detail/bloom_filter/bloom_filter_impl.cuh +++ b/include/cuco/detail/bloom_filter/bloom_filter_impl.cuh @@ -114,35 +114,19 @@ class bloom_filter_impl { } } - // template - // __device__ void add(cooperative_groups::thread_block_tile const& tile, - // ProbeKey const& key) - // { - // auto const hash_value = hash_(key); - // auto const idx = this->block_idx(hash_value); - // auto const rank = tile.thread_rank(); - - // auto const word = this->pattern_word(hash_value, rank); - // if (word != 0) { - // auto atom_word = - // cuda::atomic_ref{*(words_ + (idx * block_words + rank))}; - // atom_word.fetch_or(word, cuda::memory_order_relaxed); - // } - // } - - template - __device__ void add(CG const& group, ProbeKey const& key) + template + __device__ void add(cooperative_groups::thread_block_tile const& tile, + ProbeKey const& key) { auto const hash_value = hash_(key); auto const idx = this->block_idx(hash_value); + auto const rank = tile.thread_rank(); - for (int32_t i = group.thread_rank(); i < block_words; i += group.size()) { - auto const word = this->pattern_word(hash_value, i); - if (word != 0) { - auto atom_word = - cuda::atomic_ref{*(words_ + (idx * block_words + i))}; - atom_word.fetch_or(word, cuda::memory_order_relaxed); - } + auto const word = this->pattern_word(hash_value, rank); + if (word != 0) { + auto atom_word = + cuda::atomic_ref{*(words_ + (idx * block_words + rank))}; + atom_word.fetch_or(word, cuda::memory_order_relaxed); } }