Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Dec 7, 2023
1 parent dd1d0b2 commit 32552b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/cuco/detail/probing_scheme_impl.inl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ __host__ __device__ constexpr auto linear_probing<CGSize, Hash>::operator()(
{
using size_type = typename Extent::value_type;
return detail::probing_iterator<Extent>{
cuco::detail::sanitize_hash<size_type>(hash_(probe_key)) % static_cast<size_type>(upper_bound),
cuco::detail::sanitize_hash<size_type>(hash_(probe_key)) % upper_bound,
1, // step size is 1
upper_bound};
}
Expand Down
4 changes: 2 additions & 2 deletions tests/utility/extent_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ TEMPLATE_TEST_CASE_SIG(
{
auto constexpr size = cuco::experimental::extent<SizeType, num>{};
auto constexpr res = cuco::experimental::make_window_extent<cg_size, window_size>(size);
STATIC_REQUIRE(gold_reference == static_cast<SizeType>(res));
STATIC_REQUIRE(gold_reference == res.value());
}

SECTION("Compute dynamic valid extent at run time.")
{
auto const size = cuco::experimental::extent<SizeType>{num};
auto const res = cuco::experimental::make_window_extent<cg_size, window_size>(size);
REQUIRE(gold_reference == static_cast<SizeType>(res));
REQUIRE(gold_reference == res.value());
}
}

0 comments on commit 32552b7

Please sign in to comment.