Skip to content

Commit

Permalink
CTAD is our friend
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Oct 10, 2023
1 parent 63e1fae commit cd03620
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
16 changes: 6 additions & 10 deletions tests/static_map/heterogeneous_lookup_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,12 @@ TEMPLATE_TEST_CASE_SIG("Heterogeneous lookup",
constexpr std::size_t num = 100;
constexpr std::size_t capacity = num * 2;
auto const probe = probe_type{custom_hasher{}, custom_hasher{}};
auto my_map = cuco::experimental::static_map<Key,
Value,
cuco::experimental::extent<std::size_t>,
cuda::thread_scope_device,
custom_key_equal,
probe_type>{capacity,
cuco::empty_key<Key>{sentinel_key},
cuco::empty_value{sentinel_value},
custom_key_equal{},
probe};

auto my_map = cuco::experimental::static_map{capacity,
cuco::empty_key<Key>{sentinel_key},
cuco::empty_value{sentinel_value},
custom_key_equal{},
probe};

auto insert_pairs = thrust::make_transform_iterator(
thrust::counting_iterator<int>(0),
Expand Down
7 changes: 2 additions & 5 deletions tests/static_set/heterogeneous_lookup_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,8 @@ TEMPLATE_TEST_CASE_SIG(
constexpr std::size_t num = 100;
constexpr std::size_t capacity = num * 2;
auto const probe = probe_type{custom_hasher{}, custom_hasher{}};
auto my_set = cuco::experimental::static_set<Key,
cuco::experimental::extent<std::size_t>,
cuda::thread_scope_device,
custom_key_equal,
probe_type>{

auto my_set = cuco::experimental::static_set{
capacity, cuco::empty_key<Key>{sentinel_key}, custom_key_equal{}, probe};

auto insert_keys = thrust::make_transform_iterator(
Expand Down

0 comments on commit cd03620

Please sign in to comment.