From 03b24cf01c1d583d1352e3607e664dae7c89cb1a Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Tue, 26 Mar 2024 10:13:08 -0700 Subject: [PATCH] Get rid of `cuco::sentinel` namespace (#2243) This PR removes the use of the deprecated `cuco::sentinel` namespace. Needed by https://github.com/rapidsai/rapids-cmake/pull/569 Authors: - Yunsong Wang (https://github.com/PointKernel) Approvers: - Divye Gala (https://github.com/divyegala) URL: https://github.com/rapidsai/raft/pull/2243 --- .../detail/coo_spmv_strategies/hash_strategy.cuh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh b/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh index e271f2cdbe..8c267c5e63 100644 --- a/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh +++ b/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh @@ -236,8 +236,8 @@ class hash_strategy : public coo_spmv_strategy { 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) @@ -247,10 +247,8 @@ class hash_strategy : public coo_spmv_strategy { __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)