Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Yunsong Wang <[email protected]>
  • Loading branch information
sleeepyjack and PointKernel authored Sep 30, 2023
1 parent 01ae730 commit c9e12a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cuco/detail/common_kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ __global__ void contains_if_n(InputIt first,
} else {
auto const tile = cg::tiled_partition<CGSize>(cg::this_thread_block());
if (idx < n) {
typename std::iterator_traits<InputIt>::value_type const key = *(first + idx);
typename std::iterator_traits<InputIt>::value_type const& key = *(first + idx);
auto const found = pred(*(stencil + idx)) ? ref.contains(tile, key) : false;
if (tile.thread_rank() == 0) { *(output_begin + idx) = found; }
}
Expand Down

0 comments on commit c9e12a4

Please sign in to comment.