From 91c78d53933e41ed419f4fff5a63c68e87b79965 Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Thu, 14 Sep 2023 10:09:44 -0700 Subject: [PATCH] Minor cleanup: rename insert_pair as insert_element in common kernel implementations --- include/cuco/detail/common_kernels.cuh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/cuco/detail/common_kernels.cuh b/include/cuco/detail/common_kernels.cuh index 73dba3cf3..26c061476 100644 --- a/include/cuco/detail/common_kernels.cuh +++ b/include/cuco/detail/common_kernels.cuh @@ -76,13 +76,15 @@ __global__ void insert_if_n(InputIterator first, while (idx < n) { if (pred(*(stencil + idx))) { - typename Ref::value_type const insert_pair{*(first + idx)}; + typename Ref::value_type const insert_element{*(first + idx)}; if constexpr (CGSize == 1) { - if (ref.insert(insert_pair)) { thread_num_successes++; }; + if (ref.insert(insert_element)) { thread_num_successes++; }; } else { auto const tile = cooperative_groups::tiled_partition(cooperative_groups::this_thread_block()); - if (ref.insert(tile, insert_pair) && tile.thread_rank() == 0) { thread_num_successes++; }; + if (ref.insert(tile, insert_element) && tile.thread_rank() == 0) { + thread_num_successes++; + }; } } idx += loop_stride; @@ -134,13 +136,13 @@ __global__ void insert_if_n( while (idx < n) { if (pred(*(stencil + idx))) { - typename Ref::value_type const insert_pair{*(first + idx)}; + typename Ref::value_type const insert_element{*(first + idx)}; if constexpr (CGSize == 1) { - ref.insert(insert_pair); + ref.insert(insert_element); } else { auto const tile = cooperative_groups::tiled_partition(cooperative_groups::this_thread_block()); - ref.insert(tile, insert_pair); + ref.insert(tile, insert_element); } } idx += loop_stride;