Skip to content

Commit

Permalink
Trying again
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Jan 26, 2024
1 parent ff3fddf commit 0d4333c
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 1,581 deletions.
16 changes: 8 additions & 8 deletions conda/recipes/libcuvs/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ outputs:
- ninja
- sysroot_{{ target_platform }} {{ sysroot_version }}
host:
- {{ pin_compatible('libraft', exact=True) }}
- {{ pin_compatible('libcuvs', exact=True) }}
- libraft ={{ minor_version }}
- libcuvs ={{ minor_version }}
- cuda-version ={{ cuda_version }}
{% if cuda_major == "11" %}
- cuda-profiler-api {{ cuda11_cuda_profiler_api_run_version }}
Expand All @@ -187,8 +187,8 @@ outputs:
{% if cuda_major == "11" %}
- cudatoolkit
{% endif %}
- {{ pin_compatible('libraft', exact=True) }}
- {{ pin_compatible('libcuvs', exact=True) }}
- libraft ={{ minor_version }}
- libcuvs ={{ minor_version }}
- gmock {{ gtest_version }}
- gtest {{ gtest_version }}
about:
Expand Down Expand Up @@ -220,8 +220,8 @@ outputs:
- ninja
- sysroot_{{ target_platform }} {{ sysroot_version }}
host:
- {{ pin_compatible('libraft', exact=True) }}
- {{ pin_compatible('libcuvs', exact=True) }}
- libraft ={{ minor_version }}
- libcuvs ={{ minor_version }}
- cuda-version ={{ cuda_version }}
{% if cuda_major == "11" %}
- cuda-profiler-api {{ cuda11_cuda_profiler_api_run_version }}
Expand All @@ -236,8 +236,8 @@ outputs:
{% if cuda_major == "11" %}
- cudatoolkit
{% endif %}
- {{ pin_compatible('libraft', exact=True) }}
- {{ pin_compatible('libcuvs', exact=True) }}
- libraft ={{ minor_version }}
- libcuvs ={{ minor_version }}
about:
home: https://rapids.ai/
license: Apache-2.0
Expand Down
8 changes: 1 addition & 7 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,10 @@ rapids_export(
NAMESPACE cuvs::
)

# ##################################################################################################
# * shared test/bench headers ------------------------------------------------

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

# ##################################################################################################
# * build test executable ----------------------------------------------------

if(BUILD_TESTS OR BUILD_C_TESTS)
include(internal/CMakeLists.txt)
include(test/CMakeLists.txt)
endif()
13 changes: 5 additions & 8 deletions python/cuvs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ set(cuvs_version 24.02.00)
# We always need CUDA for cuvs because the cuvs dependency brings in a header-only cuco dependency
# that enables CUDA unconditionally.
include(rapids-cuda)
rapids_cuda_init_architectures(cuvs)
rapids_cuda_init_architectures(cuvs_py)

project(
cuvs
cuvs_py
VERSION ${cuvs_version}
LANGUAGES # TODO: Building Python extension modules via the python_extension_module requires the C
# language to be enabled here. The test project that is built in scikit-build to verify
Expand Down Expand Up @@ -67,17 +67,14 @@ if(NOT cuvs_FOUND)

add_subdirectory(../../cpp cuvs-cpp ${_exclude_from_all})

# When building the C++ libraries from source we must copy libcuvs.so alongside the
# 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)
# When building the C++ libraries from source we must copy libcuvs.so alongside the Cython
# libraries TODO: when we have a single 'compiled' cuvs library, we shouldn't need this
set(cython_lib_dir cuvs_py)
install(TARGETS cuvs DESTINATION ${cython_lib_dir})
endif()

rapids_cython_init()

add_subdirectory(cuvs/neighbors)

if(DEFINED cython_lib_dir)
rapids_cython_add_rpath_entries(TARGET cuvs PATHS "${cython_lib_dir}")
endif()
25 changes: 0 additions & 25 deletions python/cuvs/cuvs/neighbors/CMakeLists.txt

This file was deleted.

14 changes: 0 additions & 14 deletions python/cuvs/cuvs/neighbors/__init__.pxd

This file was deleted.

18 changes: 0 additions & 18 deletions python/cuvs/cuvs/neighbors/__init__.py

This file was deleted.

24 changes: 0 additions & 24 deletions python/cuvs/cuvs/neighbors/cagra/CMakeLists.txt

This file was deleted.

Empty file.
26 changes: 0 additions & 26 deletions python/cuvs/cuvs/neighbors/cagra/__init__.py

This file was deleted.

Loading

0 comments on commit 0d4333c

Please sign in to comment.