Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,001 changes: 0 additions & 1,001 deletions cpp/include/raft/cluster/detail/kmeans_deprecated.cuh

This file was deleted.

728 changes: 1 addition & 727 deletions cpp/include/raft/cluster/kmeans.cuh

Large diffs are not rendered by default.

371 changes: 0 additions & 371 deletions cpp/include/raft/cluster/kmeans_balanced.cuh

This file was deleted.

65 changes: 0 additions & 65 deletions cpp/include/raft/cluster/kmeans_deprecated.cuh

This file was deleted.

113 changes: 0 additions & 113 deletions cpp/include/raft/cluster/single_linkage.cuh

This file was deleted.

65 changes: 0 additions & 65 deletions cpp/include/raft/neighbors/brute_force_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,71 +85,6 @@ struct index : ann::index {
auto operator=(index&&) -> index& = default;
~index() = default;

/** Construct a brute force index from dataset
*
* Constructs a brute force index from a dataset. This lets us precompute norms for
* the dataset, providing a speed benefit over doing this at query time.

* If the dataset is already in GPU memory, then this class stores a non-owning reference to
* the dataset. If the dataset is in host memory, it will be copied to the device and the
* index will own the device memory.
*/

template <typename data_accessor>
[[deprecated("Use cuVS instead")]] index(
raft::resources const& res,
mdspan<const T, matrix_extent<int64_t>, row_major, data_accessor> dataset,
std::optional<raft::device_vector<T, int64_t>>&& norms,
raft::distance::DistanceType metric,
T metric_arg = 0.0)
: ann::index(),
metric_(metric),
dataset_(make_device_matrix<T, int64_t>(res, 0, 0)),
norms_(std::move(norms)),
metric_arg_(metric_arg)
{
if (norms_) { norms_view_ = make_const_mdspan(norms_.value().view()); }
update_dataset(res, dataset);
resource::sync_stream(res);
}

/** Construct a brute force index from dataset
*
* This class stores a non-owning reference to the dataset and norms here.
* Having precomputed norms gives us a performance advantage at query time.
*/
[[deprecated("Use cuVS instead")]] index(
raft::resources const& res,
raft::device_matrix_view<const T, int64_t, row_major> dataset_view,
std::optional<raft::device_vector_view<const T, int64_t>> norms_view,
raft::distance::DistanceType metric,
T metric_arg = 0.0)
: ann::index(),
metric_(metric),
dataset_(make_device_matrix<T, int64_t>(res, 0, 0)),
dataset_view_(dataset_view),
norms_view_(norms_view),
metric_arg_(metric_arg)
{
}

template <typename data_accessor>
[[deprecated("Use cuVS instead")]] index(
raft::resources const& res,
index_params const& params,
mdspan<const T, matrix_extent<int64_t>, row_major, data_accessor> dataset,
std::optional<raft::device_vector<T, int64_t>>&& norms = std::nullopt)
: ann::index(),
metric_(params.metric),
dataset_(make_device_matrix<T, int64_t>(res, 0, 0)),
norms_(std::move(norms)),
metric_arg_(params.metric_arg)
{
if (norms_) { norms_view_ = make_const_mdspan(norms_.value().view()); }
update_dataset(res, dataset);
resource::sync_stream(res);
}

/**
* Replace the dataset with a new dataset.
*/
Expand Down
9 changes: 0 additions & 9 deletions cpp/include/raft/neighbors/cagra.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,3 @@ void search(raft::resources const& res,
/** @} */ // end group cagra

} // namespace raft::neighbors::cagra

// TODO: Remove deprecated experimental namespace in 23.12 release
namespace raft::neighbors::experimental::cagra {
using raft::neighbors::cagra::build;
using raft::neighbors::cagra::build_knn_graph;
using raft::neighbors::cagra::optimize;
using raft::neighbors::cagra::search;
using raft::neighbors::cagra::sort_knn_graph;
} // namespace raft::neighbors::experimental::cagra
7 changes: 0 additions & 7 deletions cpp/include/raft/neighbors/cagra_serialize.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,3 @@ index<T, IdxT> deserialize(raft::resources const& handle, const std::string& fil
/**@}*/

} // namespace raft::neighbors::cagra

// TODO: Remove deprecated experimental namespace in 23.12 release
namespace raft::neighbors::experimental::cagra {
using raft::neighbors::cagra::deserialize;
using raft::neighbors::cagra::serialize;

} // namespace raft::neighbors::experimental::cagra
Loading