Skip to content

Commit

Permalink
More updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Jan 25, 2024
1 parent 92e7765 commit 6e78da5
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 2,086 deletions.
36 changes: 2 additions & 34 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

option(BUILD_SHARED_LIBS "Build cuvs shared libraries" ON)
option(BUILD_TESTS "Build cuvs unit-tests" ON)
option(BUILD_MICRO_BENCH "Build cuvs C++ micro benchmarks" OFF)
option(BUILD_ANN_BENCH "Build cuvs ann benchmarks" OFF)
option(BUILD_C_LIBRARY "Build raft C API library" OFF)
option(BUILD_C_TESTS "Build raft C API tests" OFF)
option(CUDA_ENABLE_KERNELINFO "Enable kernel resource usage info" OFF)
Expand All @@ -70,13 +68,7 @@ option(DISABLE_DEPRECATION_WARNINGS "Disable deprecaction warnings " ON)
option(DISABLE_OPENMP "Disable OpenMP" OFF)
option(CUVS_NVTX "Enable nvtx markers" OFF)

if((BUILD_TESTS
OR BUILD_MICRO_BENCH
OR BUILD_ANN_BENCH
OR BUILD_C_LIBRARY
)
AND NOT BUILD_CPU_ONLY
)
if((BUILD_TESTS OR BUILD_C_LIBRARY) AND NOT BUILD_CPU_ONLY)

endif()

Expand All @@ -100,8 +92,6 @@ include(CMakeDependentOption)
# nearest neighbors search on GPU" ON CUVS_COMPILE_LIBRARY OFF )

message(VERBOSE "cuVS: Build cuVS unit-tests: ${BUILD_TESTS}")
message(VERBOSE "cuVS: Building cuvs C++ benchmarks: ${BUILD_MICRO_BENCH}")
message(VERBOSE "cuVS: Building ANN benchmarks: ${BUILD_ANN_BENCH}")
message(VERBOSE "cuVS: Build CPU only components: ${BUILD_CPU_ONLY}")
message(VERBOSE "cuVS: Enable detection of conda environment for dependencies: ${DETECT_CONDA_ENV}")
message(VERBOSE "cuVS: Disable depreaction warnings " ${DISABLE_DEPRECATION_WARNINGS})
Expand Down Expand Up @@ -191,11 +181,6 @@ if(BUILD_TESTS OR BUILD_C_TESTS)
include(cmake/thirdparty/get_gtest.cmake)
endif()

if(BUILD_MICRO_BENCH OR BUILD_ANN_BENCH)
include(${rapids-cmake-dir}/cpm/gbench.cmake)
rapids_cpm_gbench()
endif()

include(cmake/thirdparty/get_cutlass.cmake)

# ##################################################################################################
Expand Down Expand Up @@ -391,10 +376,7 @@ rapids_export(
# ##################################################################################################
# * shared test/bench headers ------------------------------------------------

if(BUILD_TESTS
OR BUILD_MICRO_BENCH
OR BUILD_C_TESTS
)
if(BUILD_TESTS OR BUILD_C_TESTS)
include(internal/CMakeLists.txt)
endif()

Expand All @@ -404,17 +386,3 @@ endif()
if(BUILD_TESTS OR BUILD_C_TESTS)
include(test/CMakeLists.txt)
endif()

# ##################################################################################################
# * build benchmark executable -----------------------------------------------

if(BUILD_MICRO_BENCH)
include(bench/micro/CMakeLists.txt)
endif()

# ##################################################################################################
# * build ann benchmark executable -----------------------------------------------

if(BUILD_ANN_BENCH)
include(bench/ann/CMakeLists.txt)
endif()
8 changes: 2 additions & 6 deletions python/cuvs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ option(CUVS_BUILD_WHEELS "Whether this build is generating a Python wheel." OFF)
# If the user requested it we attempt to find CUVS.
if(FIND_CUVS_CPP)
find_package(cuvs ${cuvs_version})
if(NOT TARGET cuvs::cuvs_lib)
if(NOT TARGET cuvs::cuvs)
message(
FATAL_ERROR
"Building against a preexisting libcuvs library requires the compiled libcuvs to have been built!"
Expand All @@ -57,10 +57,6 @@ include(rapids-cython)

if(NOT cuvs_FOUND)
set(BUILD_TESTS OFF)
set(BUILD_PRIMS_BENCH OFF)
set(BUILD_ANN_BENCH OFF)
set(CUVS_COMPILE_LIBRARY ON)

set(_exclude_from_all "")
if(CUVS_BUILD_WHEELS)
# Statically link dependencies if building wheels
Expand All @@ -75,7 +71,7 @@ if(NOT cuvs_FOUND)
# pairwise_distance and random Cython libraries TODO: when we have a single 'compiled' cuvs
# library, we shouldn't need this
set(cython_lib_dir cuvs)
install(TARGETS cuvs_lib DESTINATION ${cython_lib_dir})
install(TARGETS cuvs DESTINATION ${cython_lib_dir})
endif()

rapids_cython_init()
Expand Down
Empty file.
14 changes: 0 additions & 14 deletions python/cuvs/cuvs/neighbors/cpp/__init__.py

This file was deleted.

53 changes: 0 additions & 53 deletions python/cuvs/cuvs/neighbors/cpp/brute_force.pxd

This file was deleted.

110 changes: 0 additions & 110 deletions python/cuvs/cuvs/test/test_brute_force.py

This file was deleted.

62 changes: 0 additions & 62 deletions python/cuvs/cuvs/test/test_device_ndarray.py

This file was deleted.

Loading

0 comments on commit 6e78da5

Please sign in to comment.