Skip to content

Commit c7b9bb3

Browse files
committed
Update tests
1 parent 0bd37a6 commit c7b9bb3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/hyperloglog/add_if_test.cu

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929

3030
TEST_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

Comments
 (0)