Skip to content

Commit

Permalink
Get rid of cuco::sentinel namespace (#2243)
Browse files Browse the repository at this point in the history
This PR removes the use of the deprecated `cuco::sentinel` namespace.

Needed by rapidsai/rapids-cmake#569

Authors:
  - Yunsong Wang (https://github.com/PointKernel)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: #2243
  • Loading branch information
PointKernel authored Mar 26, 2024
1 parent 52e0d73 commit 03b24cf
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ class hash_strategy : public coo_spmv_strategy<value_idx, value_t, tpb> {
return insert_type::make_from_uninitialized_slots(cooperative_groups::this_thread_block(),
cache,
cache_size,
cuco::sentinel::empty_key{value_idx{-1}},
cuco::sentinel::empty_value{value_t{0}});
cuco::empty_key{value_idx{-1}},
cuco::empty_value{value_t{0}});
}

__device__ inline void insert(insert_type cache, const value_idx& key, const value_t& value)
Expand All @@ -247,10 +247,8 @@ class hash_strategy : public coo_spmv_strategy<value_idx, value_t, tpb> {

__device__ inline find_type init_find(smem_type cache, const value_idx& cache_size)
{
return find_type(cache,
cache_size,
cuco::sentinel::empty_key{value_idx{-1}},
cuco::sentinel::empty_value{value_t{0}});
return find_type(
cache, cache_size, cuco::empty_key{value_idx{-1}}, cuco::empty_value{value_t{0}});
}

__device__ inline value_t find(find_type cache, const value_idx& key)
Expand Down

0 comments on commit 03b24cf

Please sign in to comment.