2929
3030TEST_CASE (" hyperloglog: add_if with stencil predicate" )
3131{
32- auto constexpr hll_precision = 12 ;
33- auto constexpr sketch_size_kb = 4 * (1ull << hll_precision) / 1024 ;
34- auto constexpr num_items = 100000 ;
32+ auto constexpr hll_precision = 12 ;
33+ auto constexpr num_items = 100000 ;
3534
3635 double constexpr tolerance_factor = 2.5 ;
3736 double const relative_standard_deviation =
@@ -49,7 +48,7 @@ TEST_CASE("hyperloglog: add_if with stencil predicate")
4948 auto pred = [] __device__ (int x) { return x % 2 == 0 ; };
5049
5150 cuco::hyperloglog<int64_t , cuda::thread_scope_device, cuco::xxhash_64<int64_t >> estimator{
52- cuco::sketch_size_kb (sketch_size_kb )};
51+ cuco::precision (hll_precision )};
5352
5453 REQUIRE (estimator.estimate () == 0 );
5554
@@ -71,7 +70,7 @@ TEST_CASE("hyperloglog: add_if with stencil predicate")
7170 auto pred = [] __device__ (int x) { return x != 0 ; };
7271
7372 cuco::hyperloglog<int64_t , cuda::thread_scope_device, cuco::xxhash_64<int64_t >> estimator{
74- cuco::sketch_size_kb (sketch_size_kb )};
73+ cuco::precision (hll_precision )};
7574
7675 estimator.add_if_async (items.begin (), items.end (), stencil.begin (), pred);
7776
@@ -90,7 +89,7 @@ TEST_CASE("hyperloglog: add_if with stencil predicate")
9089 auto pred = [] __device__ (int x) { return x != 0 ; };
9190
9291 cuco::hyperloglog<int64_t , cuda::thread_scope_device, cuco::xxhash_64<int64_t >> estimator{
93- cuco::sketch_size_kb (sketch_size_kb )};
92+ cuco::precision (hll_precision )};
9493
9594 estimator.add_if_async (items.begin (), items.end (), stencil.begin (), pred);
9695
0 commit comments