From 21291c8c10ce49384f5cb6f9f70ddce3667ba3fd Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Fri, 16 Feb 2024 10:04:50 -0800 Subject: [PATCH] Update raft for compatibility with the latest cuco (#2118) This PR updates raft to make it compatible with the latest cuco. Depends on https://github.com/rapidsai/rapids-cmake/pull/526 CMake changes will be reverted once https://github.com/rapidsai/rapids-cmake/pull/526 is merged. Authors: - Yunsong Wang (https://github.com/PointKernel) Approvers: - Bradley Dice (https://github.com/bdice) - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/2118 --- .../distance/detail/coo_spmv_strategies/hash_strategy.cuh | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 d21ae29a34..20c722f3e0 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 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2023, NVIDIA CORPORATION. + * Copyright (c) 2021-2024, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,11 +43,11 @@ namespace detail { template class hash_strategy : public coo_spmv_strategy { public: - using insert_type = - typename cuco::static_map::device_mutable_view; + using insert_type = typename cuco::legacy:: + static_map::device_mutable_view; using smem_type = typename insert_type::slot_type*; using find_type = - typename cuco::static_map::device_view; + typename cuco::legacy::static_map::device_view; hash_strategy(const distances_config_t& config_, float capacity_threshold_ = 0.5,