diff --git a/cpp/bench/ann/CMakeLists.txt b/cpp/bench/ann/CMakeLists.txt index d1f4d281d..cf90ad008 100644 --- a/cpp/bench/ann/CMakeLists.txt +++ b/cpp/bench/ann/CMakeLists.txt @@ -209,47 +209,32 @@ endif() if(CUVS_BENCH_USE_RAFT_IVF_PQ) ConfigureAnnBench( NAME RAFT_IVF_PQ PATH bench/ann/src/raft/raft_benchmark.cu - $<$:bench/ann/src/raft/raft_ivf_pq.cu> LINKS raft::compiled + $<$:bench/ann/src/raft/raft_ivf_pq.cu> LINKS cuvs ) endif() if(CUVS_BENCH_USE_RAFT_IVF_FLAT) ConfigureAnnBench( - NAME - RAFT_IVF_FLAT - PATH - bench/ann/src/raft/raft_benchmark.cu - $<$:bench/ann/src/raft/raft_ivf_flat.cu> - LINKS - raft::compiled + NAME RAFT_IVF_FLAT PATH bench/ann/src/raft/raft_benchmark.cu + $<$:bench/ann/src/raft/raft_ivf_flat.cu> LINKS cuvs ) endif() if(CUVS_BENCH_USE_RAFT_BRUTE_FORCE) - ConfigureAnnBench( - NAME RAFT_BRUTE_FORCE PATH bench/ann/src/raft/raft_benchmark.cu LINKS raft::compiled - ) + ConfigureAnnBench(NAME RAFT_BRUTE_FORCE PATH bench/ann/src/raft/raft_benchmark.cu LINKS cuvs) endif() if(CUVS_BENCH_USE_RAFT_CAGRA) ConfigureAnnBench( NAME RAFT_CAGRA PATH bench/ann/src/raft/raft_benchmark.cu - $<$:bench/ann/src/raft/raft_cagra.cu> LINKS raft::compiled + $<$:bench/ann/src/raft/raft_cagra.cu> LINKS cuvs ) endif() if(CUVS_BENCH_USE_RAFT_CAGRA_HNSWLIB) ConfigureAnnBench( - NAME - RAFT_CAGRA_HNSWLIB - PATH - bench/ann/src/raft/raft_cagra_hnswlib.cu - INCLUDES - ${CMAKE_CURRENT_BINARY_DIR}/_deps/hnswlib-src/hnswlib - LINKS - raft::compiled - CXXFLAGS - "${HNSW_CXX_FLAGS}" + NAME RAFT_CAGRA_HNSWLIB PATH bench/ann/src/raft/raft_cagra_hnswlib.cu INCLUDES + ${CMAKE_CURRENT_BINARY_DIR}/_deps/hnswlib-src/hnswlib LINKS cuvs CXXFLAGS "${HNSW_CXX_FLAGS}" ) endif() diff --git a/cpp/bench/micro/CMakeLists.txt b/cpp/bench/micro/CMakeLists.txt index ca22baaf1..89104ce11 100644 --- a/cpp/bench/micro/CMakeLists.txt +++ b/cpp/bench/micro/CMakeLists.txt @@ -29,7 +29,7 @@ function(ConfigureBench) target_link_libraries( ${BENCH_NAME} - PRIVATE raft::raft ${CUVS_CTK_MATH_DEPENDENCIES} benchmark::benchmark Threads::Threads + PRIVATE raft::raft cuvs_internal benchmark::benchmark Threads::Threads $ $ ) @@ -67,7 +67,7 @@ function(ConfigureBench) endfunction() -if(BUILD_PRIMS_BENCH) +if(BUILD_MICRO_BENCH) ConfigureBench( NAME CLUSTER_BENCH PATH bench/micro/cluster/kmeans_balanced.cu bench/micro/cluster/kmeans.cu bench/micro/main.cpp OPTIONAL LIB EXPLICIT_INSTANTIATE_ONLY diff --git a/cpp/bench/micro/matrix/select_k.cu b/cpp/bench/micro/matrix/select_k.cu index d3994e59c..5eee5e3d2 100644 --- a/cpp/bench/micro/matrix/select_k.cu +++ b/cpp/bench/micro/matrix/select_k.cu @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include #include diff --git a/cpp/bench/micro/neighbors/refine.cuh b/cpp/bench/micro/neighbors/refine.cuh index 121917f34..18d27116f 100644 --- a/cpp/bench/micro/neighbors/refine.cuh +++ b/cpp/bench/micro/neighbors/refine.cuh @@ -16,7 +16,7 @@ #pragma once -#include +#include #include diff --git a/cpp/internal/CMakeLists.txt b/cpp/internal/CMakeLists.txt index 5d9e8c6f8..88d423ad3 100644 --- a/cpp/internal/CMakeLists.txt +++ b/cpp/internal/CMakeLists.txt @@ -12,10 +12,10 @@ # the License. # ============================================================================= -if(BUILD_TESTS OR BUILD_PRIMS_BENCH) - add_library(raft_internal INTERFACE) +if(BUILD_TESTS OR BUILD_MICRO_BENCH) + add_library(cuvs_internal INTERFACE) target_include_directories( - raft_internal INTERFACE "$" + cuvs_internal INTERFACE "$" ) - target_compile_features(raft_internal INTERFACE cxx_std_17 $) + target_compile_features(cuvs_internal INTERFACE cxx_std_17 $) endif() diff --git a/cpp/internal/cuvs_internal/neighbors/naive_knn.cuh b/cpp/internal/cuvs_internal/neighbors/naive_knn.cuh index 64a81da01..e7c830700 100644 --- a/cpp/internal/cuvs_internal/neighbors/naive_knn.cuh +++ b/cpp/internal/cuvs_internal/neighbors/naive_knn.cuh @@ -16,9 +16,9 @@ #pragma once -#include +#include +#include #include -#include #include #include diff --git a/cpp/internal/cuvs_internal/neighbors/refine_helper.cuh b/cpp/internal/cuvs_internal/neighbors/refine_helper.cuh index 4a0611687..f8b297634 100644 --- a/cpp/internal/cuvs_internal/neighbors/refine_helper.cuh +++ b/cpp/internal/cuvs_internal/neighbors/refine_helper.cuh @@ -15,8 +15,8 @@ */ #pragma once +#include #include -#include #include #include diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 1e01d59b2..355c36e0d 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -46,17 +46,12 @@ function(ConfigureTest) add_executable(${TEST_NAME} ${_CUVS_TEST_PATH}) target_link_libraries( ${TEST_NAME} - PRIVATE raft::raft - GTest::gtest - GTest::gtest_main - Threads::Threads - ${CUVS_CTK_MATH_DEPENDENCIES} - $ - $ + PRIVATE cuvs raft::raft cuvs_internal GTest::gtest GTest::gtest_main Threads::Threads + $ $ ) set_target_properties( ${TEST_NAME} - PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$" + PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$" INSTALL_RPATH "\$ORIGIN/../../../lib" CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON @@ -242,4 +237,4 @@ endif() # ################################################################################################## # Install tests #################################################################################### # ################################################################################################## -rapids_test_install_relocatable(INSTALL_COMPONENT_SET testing DESTINATION bin/gtests/libraft) +rapids_test_install_relocatable(INSTALL_COMPONENT_SET testing DESTINATION bin/gtests/libcuvs) diff --git a/cpp/test/neighbors/ann_cagra.cuh b/cpp/test/neighbors/ann_cagra.cuh index f8e82acf8..6fcbada5b 100644 --- a/cpp/test/neighbors/ann_cagra.cuh +++ b/cpp/test/neighbors/ann_cagra.cuh @@ -21,7 +21,7 @@ #include "ann_utils.cuh" #include -#include +#include #include #include diff --git a/cpp/test/neighbors/ann_ivf_flat.cuh b/cpp/test/neighbors/ann_ivf_flat.cuh index a9fd696f1..ca678014b 100644 --- a/cpp/test/neighbors/ann_ivf_flat.cuh +++ b/cpp/test/neighbors/ann_ivf_flat.cuh @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include diff --git a/cpp/test/neighbors/ann_ivf_pq.cuh b/cpp/test/neighbors/ann_ivf_pq.cuh index eb30b60ec..9f6c3cb81 100644 --- a/cpp/test/neighbors/ann_ivf_pq.cuh +++ b/cpp/test/neighbors/ann_ivf_pq.cuh @@ -19,7 +19,7 @@ #include "ann_utils.cuh" #include -#include +#include #include #include diff --git a/cpp/test/neighbors/ann_nn_descent.cuh b/cpp/test/neighbors/ann_nn_descent.cuh index 85574442a..82523a07d 100644 --- a/cpp/test/neighbors/ann_nn_descent.cuh +++ b/cpp/test/neighbors/ann_nn_descent.cuh @@ -18,7 +18,7 @@ #include "../test_utils.cuh" #include "ann_utils.cuh" -#include +#include #include #include diff --git a/cpp/test/neighbors/ann_utils.cuh b/cpp/test/neighbors/ann_utils.cuh index 18860100f..ec745fec9 100644 --- a/cpp/test/neighbors/ann_utils.cuh +++ b/cpp/test/neighbors/ann_utils.cuh @@ -28,7 +28,7 @@ #include #include -#include +#include #include "../test_utils.cuh" #include diff --git a/cpp/test/neighbors/refine.cu b/cpp/test/neighbors/refine.cu index c5865a761..3396994e8 100644 --- a/cpp/test/neighbors/refine.cu +++ b/cpp/test/neighbors/refine.cu @@ -18,7 +18,7 @@ #include "ann_utils.cuh" #include -#include +#include #include #include diff --git a/cpp/test/stats/neighborhood_recall.cu b/cpp/test/stats/neighborhood_recall.cu index 43ae7059b..ff8d01c74 100644 --- a/cpp/test/stats/neighborhood_recall.cu +++ b/cpp/test/stats/neighborhood_recall.cu @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include