Skip to content

Commit

Permalink
Remove unused sources and headers
Browse files Browse the repository at this point in the history
Signed-off-by: Mickael Ide <[email protected]>
  • Loading branch information
lowener committed Jan 17, 2024
1 parent 3f21e5c commit 7d766dd
Show file tree
Hide file tree
Showing 375 changed files with 215 additions and 41,426 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (c) 2020-2023, NVIDIA CORPORATION.
# Copyright (c) 2020-2024, NVIDIA CORPORATION.

# cuvs build scripts

Expand Down Expand Up @@ -77,8 +77,8 @@ INSTALL_TARGET=install
BUILD_REPORT_METRICS=""
BUILD_REPORT_INCL_CACHE_STATS=OFF

TEST_TARGETS="CLUSTER_TEST;DISTANCE_TEST;NEIGHBORS_TEST;NEIGHBORS_ANN_CAGRA_TEST;NEIGHBORS_ANN_NN_DESCENT_TEST;NEIGHBORS_ANN_IVF_TEST"
BENCH_TARGETS="CLUSTER_BENCH;NEIGHBORS_BENCH;DISTANCE_BENCH"
TEST_TARGETS="NEIGHBORS_ANN_CAGRA_TEST"
BENCH_TARGETS="NEIGHBORS_BENCH"

CACHE_ARGS=""
NVTX=ON
Expand Down
161 changes: 0 additions & 161 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,167 +191,6 @@ include(cmake/thirdparty/get_cutlass.cmake)

add_library(
cuvs SHARED
# src/distance/detail/pairwise_matrix/dispatch_canberra_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_canberra_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_correlation_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_correlation_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_cosine_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_cosine_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_hamming_unexpanded_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_hamming_unexpanded_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_hellinger_expanded_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_hellinger_expanded_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_jensen_shannon_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_jensen_shannon_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_kl_divergence_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_kl_divergence_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l1_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l1_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l2_expanded_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l2_expanded_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l2_unexpanded_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l2_unexpanded_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l_inf_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_l_inf_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_lp_unexpanded_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_lp_unexpanded_float_float_float_int.cu
# src/distance/detail/pairwise_matrix/dispatch_rbf.cu
# src/distance/detail/pairwise_matrix/dispatch_russel_rao_double_double_double_int.cu
# src/distance/detail/pairwise_matrix/dispatch_russel_rao_float_float_float_int.cu
# src/distance/distance.cu
# src/distance/fused_l2_nn.cu
# src/matrix/detail/select_k_double_int64_t.cu
# src/matrix/detail/select_k_double_uint32_t.cu
# src/matrix/detail/select_k_float_int64_t.cu
# src/matrix/detail/select_k_float_uint32_t.cu
# src/matrix/detail/select_k_float_int32.cu
# src/matrix/detail/select_k_half_int64_t.cu
# src/matrix/detail/select_k_half_uint32_t.cu
# src/neighbors/ball_cover.cu
# src/neighbors/brute_force_fused_l2_knn_float_int64_t.cu
# src/neighbors/brute_force_knn_int64_t_float_int64_t.cu
# src/neighbors/brute_force_knn_int64_t_float_uint32_t.cu
# src/neighbors/brute_force_knn_int_float_int.cu
# src/neighbors/brute_force_knn_uint32_t_float_uint32_t.cu
# src/neighbors/brute_force_knn_index_float.cu
# src/neighbors/detail/cagra/search_multi_cta_float_uint32_dim128_t8.cu
# src/neighbors/detail/cagra/search_multi_cta_float_uint32_dim256_t16.cu
# src/neighbors/detail/cagra/search_multi_cta_float_uint32_dim512_t32.cu
# src/neighbors/detail/cagra/search_multi_cta_float_uint32_dim1024_t32.cu
# src/neighbors/detail/cagra/search_multi_cta_int8_uint32_dim128_t8.cu
# src/neighbors/detail/cagra/search_multi_cta_int8_uint32_dim256_t16.cu
# src/neighbors/detail/cagra/search_multi_cta_int8_uint32_dim512_t32.cu
# src/neighbors/detail/cagra/search_multi_cta_int8_uint32_dim1024_t32.cu
# src/neighbors/detail/cagra/search_multi_cta_uint8_uint32_dim128_t8.cu
# src/neighbors/detail/cagra/search_multi_cta_uint8_uint32_dim256_t16.cu
# src/neighbors/detail/cagra/search_multi_cta_uint8_uint32_dim512_t32.cu
# src/neighbors/detail/cagra/search_multi_cta_uint8_uint32_dim1024_t32.cu
# src/neighbors/detail/cagra/search_single_cta_float_uint32_dim128_t8.cu
# src/neighbors/detail/cagra/search_single_cta_float_uint32_dim256_t16.cu
# src/neighbors/detail/cagra/search_single_cta_float_uint32_dim512_t32.cu
# src/neighbors/detail/cagra/search_single_cta_float_uint32_dim1024_t32.cu
# src/neighbors/detail/cagra/search_single_cta_int8_uint32_dim128_t8.cu
# src/neighbors/detail/cagra/search_single_cta_int8_uint32_dim256_t16.cu
# src/neighbors/detail/cagra/search_single_cta_int8_uint32_dim512_t32.cu
# src/neighbors/detail/cagra/search_single_cta_int8_uint32_dim1024_t32.cu
# src/neighbors/detail/cagra/search_single_cta_uint8_uint32_dim128_t8.cu
# src/neighbors/detail/cagra/search_single_cta_uint8_uint32_dim256_t16.cu
# src/neighbors/detail/cagra/search_single_cta_uint8_uint32_dim512_t32.cu
# src/neighbors/detail/cagra/search_single_cta_uint8_uint32_dim1024_t32.cu
# src/neighbors/detail/ivf_flat_interleaved_scan_float_float_int64_t.cu
# src/neighbors/detail/ivf_flat_interleaved_scan_int8_t_int32_t_int64_t.cu
# src/neighbors/detail/ivf_flat_interleaved_scan_uint8_t_uint32_t_int64_t.cu
# src/neighbors/detail/ivf_flat_search.cu
# src/neighbors/detail/ivf_pq_compute_similarity_float_float.cu
# src/neighbors/detail/ivf_pq_compute_similarity_float_fp8_false.cu
# src/neighbors/detail/ivf_pq_compute_similarity_float_fp8_true.cu
# src/neighbors/detail/ivf_pq_compute_similarity_float_half.cu
# src/neighbors/detail/ivf_pq_compute_similarity_half_fp8_false.cu
# src/neighbors/detail/ivf_pq_compute_similarity_half_fp8_true.cu
# src/neighbors/detail/ivf_pq_compute_similarity_half_half.cu
# src/neighbors/detail/refine_host_float_float.cpp
# src/neighbors/detail/refine_host_int8_t_float.cpp
# src/neighbors/detail/refine_host_uint8_t_float.cpp
# src/neighbors/detail/selection_faiss_int32_t_float.cu
# src/neighbors/detail/selection_faiss_int_double.cu
# src/neighbors/detail/selection_faiss_long_float.cu
# src/neighbors/detail/selection_faiss_size_t_double.cu
# src/neighbors/detail/selection_faiss_size_t_float.cu
# src/neighbors/detail/selection_faiss_uint32_t_float.cu
# src/neighbors/detail/selection_faiss_int64_t_double.cu
# src/neighbors/detail/selection_faiss_int64_t_half.cu
# src/neighbors/detail/selection_faiss_uint32_t_double.cu
# src/neighbors/detail/selection_faiss_uint32_t_half.cu
# src/neighbors/ivf_flat_build_float_int64_t.cu
# src/neighbors/ivf_flat_build_int8_t_int64_t.cu
# src/neighbors/ivf_flat_build_uint8_t_int64_t.cu
# src/neighbors/ivf_flat_extend_float_int64_t.cu
# src/neighbors/ivf_flat_extend_int8_t_int64_t.cu
# src/neighbors/ivf_flat_extend_uint8_t_int64_t.cu
# src/neighbors/ivf_flat_search_float_int64_t.cu
# src/neighbors/ivf_flat_search_int8_t_int64_t.cu
# src/neighbors/ivf_flat_search_uint8_t_int64_t.cu
# src/neighbors/ivfpq_build_float_int64_t.cu
# src/neighbors/ivfpq_build_int8_t_int64_t.cu
# src/neighbors/ivfpq_build_uint8_t_int64_t.cu
# src/neighbors/ivfpq_extend_float_int64_t.cu
# src/neighbors/ivfpq_extend_int8_t_int64_t.cu
# src/neighbors/ivfpq_extend_uint8_t_int64_t.cu
# src/neighbors/ivfpq_search_float_int64_t.cu
# src/neighbors/ivfpq_search_int8_t_int64_t.cu
# src/neighbors/ivfpq_search_uint8_t_int64_t.cu
# src/neighbors/refine_float_float.cu
# src/neighbors/refine_int8_t_float.cu
# src/neighbors/refine_uint8_t_float.cu
# src/cuvs_runtime/cluster/cluster_cost.cuh
# src/cuvs_runtime/cluster/cluster_cost_double.cu
# src/cuvs_runtime/cluster/cluster_cost_float.cu
# src/cuvs_runtime/cluster/kmeans_fit_double.cu
# src/cuvs_runtime/cluster/kmeans_fit_float.cu
# src/cuvs_runtime/cluster/kmeans_init_plus_plus_double.cu
# src/cuvs_runtime/cluster/kmeans_init_plus_plus_float.cu
# src/cuvs_runtime/cluster/update_centroids.cuh
# src/cuvs_runtime/cluster/update_centroids_double.cu
# src/cuvs_runtime/cluster/update_centroids_float.cu
# src/cuvs_runtime/distance/fused_l2_min_arg.cu
# src/cuvs_runtime/distance/pairwise_distance.cu
# src/cuvs_runtime/matrix/select_k_float_int64_t.cu
# src/cuvs_runtime/neighbors/brute_force_knn_int64_t_float.cu
# src/cuvs_runtime/neighbors/ivf_flat_build.cu
# src/cuvs_runtime/neighbors/ivf_flat_search.cu
# src/cuvs_runtime/neighbors/ivf_flat_serialize.cu
# src/cuvs_runtime/neighbors/ivfpq_build.cu
# src/cuvs_runtime/neighbors/ivfpq_deserialize.cu
# src/cuvs_runtime/neighbors/ivfpq_search_float_int64_t.cu
# src/cuvs_runtime/neighbors/ivfpq_search_int8_t_int64_t.cu
# src/cuvs_runtime/neighbors/ivfpq_search_uint8_t_int64_t.cu
# src/cuvs_runtime/neighbors/ivfpq_serialize.cu
# src/cuvs_runtime/neighbors/refine_d_int64_t_float.cu
# src/cuvs_runtime/neighbors/refine_d_int64_t_int8_t.cu
# src/cuvs_runtime/neighbors/refine_d_int64_t_uint8_t.cu
# src/cuvs_runtime/neighbors/refine_h_int64_t_float.cu
# src/cuvs_runtime/neighbors/refine_h_int64_t_int8_t.cu
# src/cuvs_runtime/neighbors/refine_h_int64_t_uint8_t.cu
# src/cuvs_runtime/random/rmat_rectangular_generator_int64_double.cu
# src/cuvs_runtime/random/rmat_rectangular_generator_int64_float.cu
# src/cuvs_runtime/random/rmat_rectangular_generator_int_double.cu
# src/cuvs_runtime/random/rmat_rectangular_generator_int_float.cu
# src/spatial/knn/detail/ball_cover/registers_pass_one_2d_dist.cu
# src/spatial/knn/detail/ball_cover/registers_pass_one_2d_euclidean.cu
# src/spatial/knn/detail/ball_cover/registers_pass_one_2d_haversine.cu
# src/spatial/knn/detail/ball_cover/registers_pass_one_3d_dist.cu
# src/spatial/knn/detail/ball_cover/registers_pass_one_3d_euclidean.cu
# src/spatial/knn/detail/ball_cover/registers_pass_one_3d_haversine.cu
# src/spatial/knn/detail/ball_cover/registers_pass_two_2d_dist.cu
# src/spatial/knn/detail/ball_cover/registers_pass_two_2d_euclidean.cu
# src/spatial/knn/detail/ball_cover/registers_pass_two_2d_haversine.cu
# src/spatial/knn/detail/ball_cover/registers_pass_two_3d_dist.cu
# src/spatial/knn/detail/ball_cover/registers_pass_two_3d_euclidean.cu
# src/spatial/knn/detail/ball_cover/registers_pass_two_3d_haversine.cu
# src/spatial/knn/detail/fused_l2_knn_int32_t_float.cu
# src/spatial/knn/detail/fused_l2_knn_int64_t_float.cu
# src/spatial/knn/detail/fused_l2_knn_uint32_t_float.cu

src/neighbors/cagra_build_float.cpp
src/neighbors/cagra_build_int8.cpp
src/neighbors/cagra_build_uint8.cpp
Expand Down
10 changes: 4 additions & 6 deletions cpp/bench/ann/src/raft/raft_cagra_wrapper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
* Copyright (c) 2023-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.
Expand All @@ -17,9 +17,7 @@

#include <cassert>
#include <cuvs/distance/distance_types.hpp>
#include <cuvs/neighbors/cagra.cuh>
#include <cuvs/neighbors/cagra_serialize.cuh>
#include <cuvs/neighbors/cagra_types.hpp>
#include <cuvs/neighbors/cagra.hpp>
#include <cuvs/neighbors/detail/cagra/cagra_build.cuh>
#include <cuvs/neighbors/ivf_pq_types.hpp>
#include <cuvs/neighbors/nn_descent_types.hpp>
Expand Down Expand Up @@ -57,7 +55,7 @@ class RaftCagra : public ANN<T> {
using typename ANN<T>::AnnSearchParam;

struct SearchParam : public AnnSearchParam {
cuvs::neighbors::experimental::cagra::search_params p;
cuvs::neighbors::cagra::search_params p;
AllocatorType graph_mem = AllocatorType::Device;
AllocatorType dataset_mem = AllocatorType::Device;
auto needs_dataset() const -> bool override { return true; }
Expand Down Expand Up @@ -209,7 +207,7 @@ void RaftCagra<T, IdxT>::set_search_param(const AnnSearchParam& param)
allocator_to_string(dataset_mem_).c_str());

auto mr = get_mr(dataset_mem_);
cuvs::neighbors::cagra::detail::copy_with_padding(handle_, dataset_, input_dataset_v_, mr);
raft::neighbors::cagra::detail::copy_with_padding(handle_, dataset_, input_dataset_v_, mr);

index_->update_dataset(handle_, make_const_mdspan(dataset_.view()));

Expand Down
4 changes: 2 additions & 2 deletions cpp/bench/micro/neighbors/cagra_bench.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
* Copyright (c) 2023-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.
Expand All @@ -17,7 +17,7 @@
#pragma once

#include <common/benchmark.hpp>
#include <cuvs/neighbors/cagra.cuh>
#include <cuvs/neighbors/cagra.hpp>
#include <cuvs/neighbors/sample_filter.cuh>
#include <raft/random/rng.cuh>
#include <raft/util/itertools.hpp>
Expand Down
Loading

0 comments on commit 7d766dd

Please sign in to comment.