Skip to content

Commit

Permalink
don't include get_cuvs.cmake in bench
Browse files Browse the repository at this point in the history
  • Loading branch information
divyegala committed Oct 3, 2024
1 parent 265a8ac commit 996f11b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cpp/bench/ann/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ option(CUVS_KNN_BENCH_USE_CUVS_BRUTE_FORCE "Include cuVS brute force knn in benc

find_package(Threads REQUIRED)

if(NOT BUILD_SHARED_LIBS)
include(../../cmake/thirdparty/get_cuvs.cmake)
endif()

set(CUVS_ANN_BENCH_USE_FAISS ON)
set(CUVS_FAISS_ENABLE_GPU ON)
set(CUVS_USE_FAISS_STATIC ON)
Expand Down
7 changes: 5 additions & 2 deletions cpp/cmake/thirdparty/get_cuvs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(CUVS_FORK "rapidsai")
set(CUVS_PINNED_TAG "branch-${RAPIDS_VERSION_MAJOR_MINOR}")

function(find_and_configure_cuvs)
set(oneValueArgs VERSION FORK PINNED_TAG USE_RAFT_STATIC ENABLE_NVTX ENABLE_MNMG_DEPENDENCIES CLONE_ON_PIN)
set(oneValueArgs VERSION FORK PINNED_TAG ENABLE_NVTX CLONE_ON_PIN BUILD_CPU_ONLY BUILD_SHARED_LIBS)
cmake_parse_arguments(PKG "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN} )

Expand All @@ -39,7 +39,8 @@ function(find_and_configure_cuvs)
GIT_TAG ${PKG_PINNED_TAG}
SOURCE_SUBDIR cpp
OPTIONS
"BUILD_SHARED_LIBS OFF"
"BUILD_SHARED_LIBS ${PKG_BUILD_SHARED_LIBS}"
"BUILD_CPU_ONLY ${PKG_BUILD_CPU_ONLY}"
"BUILD_TESTS OFF"
"BUILD_CAGRA_HNSWLIB OFF"
"RAFT_COMPILE_LIBRARY OFF"
Expand All @@ -59,4 +60,6 @@ find_and_configure_cuvs(VERSION ${CUVS_VERSION}.00
# force local raft clone in build directory
# even if it's already installed.
CLONE_ON_PIN ${CUVS_RAFT_CLONE_ON_PIN}
BUILD_CPU_ONLY ${BUILD_CPU_ONLY}
BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}
)

0 comments on commit 996f11b

Please sign in to comment.