From 615dcadefce4b5741c5cf769b90860ff351fe6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20J=C3=BCnger?= Date: Fri, 18 Oct 2024 00:30:37 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Yunsong Wang --- .../open_addressing/open_addressing_impl.cuh | 11 ----------- .../open_addressing/open_addressing_ref_impl.cuh | 16 ---------------- .../detail/static_multiset/static_multiset.inl | 2 -- .../static_multiset/static_multiset_ref.inl | 2 +- 4 files changed, 1 insertion(+), 30 deletions(-) diff --git a/include/cuco/detail/open_addressing/open_addressing_impl.cuh b/include/cuco/detail/open_addressing/open_addressing_impl.cuh index 9b638ab76..3d7abc9a5 100644 --- a/include/cuco/detail/open_addressing/open_addressing_impl.cuh +++ b/include/cuco/detail/open_addressing/open_addressing_impl.cuh @@ -1130,17 +1130,6 @@ class open_addressing_impl { counter.reset(stream.get()); int32_t constexpr block_size = cuco::detail::default_block_size(); - // int32_t grid_size = - // detail::max_occupancy_grid_size(block_size, - // detail::retrieve); - // grid_size *= 64; // oversubscription factor - // // TODO shrink grid if n is very small auto constexpr grid_stride = 1; auto const grid_size = cuco::detail::grid_size(n, cg_size, grid_stride, block_size); 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 fb0ca0720..56a58a9e4 100644 --- a/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh +++ b/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh @@ -1253,22 +1253,6 @@ class open_addressing_ref_impl { ? sentinel_writers.size() : active_flushing_tile.size() - sentinel_writers.size(); } - // if (finished and not found_any_match) { - // #if defined(CUCO_HAS_CG_INVOKE_ONE) - // cg::invoke_one(probing_tile, [&]() { - // probe_buffers[flushing_tile_id][num_matches] = probe; - // probe_buffers[flushing_tile_id][num_matches] = - // this->empty_slot_sentinel(); - // }); - // #else - // if (probing_tile.thread_rank() == 0) { - // probe_buffers[flushing_tile_id][num_matches] = probe; - // probe_buffers[flushing_tile_id][num_matches] = - // this->empty_slot_sentinel(); - // } - // #endif - // num_matches++; // not really a match but a sentinel in the buffer - // } } // if the buffer has not enough empty slots for the next iteration diff --git a/include/cuco/detail/static_multiset/static_multiset.inl b/include/cuco/detail/static_multiset/static_multiset.inl index bb6b8566d..b88f0f6ff 100644 --- a/include/cuco/detail/static_multiset/static_multiset.inl +++ b/include/cuco/detail/static_multiset/static_multiset.inl @@ -277,7 +277,6 @@ void static_multisetfind_async(first, last, output_begin, ref(op::find), stream); } -// TODO docs template first, last, output_probe, output_match, this->ref(op::retrieve), stream); } -// TODO docs template