Skip to content

Commit fccf33e

Browse files
authored
Remove raft-ann-bench (#2497)
This PR removes raft-ann-bench from the conda packages, build system, and documentation. This removal was previously announced for the 24.12 release in #2448. Authors: - Corey J. Nolet (https://github.com/cjnolet) - Bradley Dice (https://github.com/bdice) Approvers: - Ben Frederickson (https://github.com/benfred) - Bradley Dice (https://github.com/bdice) URL: #2497
1 parent 8a9bf5c commit fccf33e

File tree

125 files changed

+46
-28589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+46
-28589
lines changed

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,5 @@ jobs:
151151
cuda: '["12.5"]'
152152
build_command: |
153153
sccache -z;
154-
build-all -DBUILD_PRIMS_BENCH=ON -DBUILD_ANN_BENCH=ON --verbose;
154+
build-all -DBUILD_PRIMS_BENCH=ON --verbose;
155155
sccache -s;

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ log
2525
dask-worker-space/
2626
*.egg-info/
2727
*.bin
28-
bench/ann/data
2928
temporary_*.json
3029

3130
## scikit-build

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ repos:
6262
entry: ./cpp/scripts/run-cmake-format.sh cmake-format
6363
language: python
6464
types: [cmake]
65-
exclude: .*/thirdparty/.*|.*FindAVX.cmake.*
65+
exclude: .*/thirdparty/.*
6666
# Note that pre-commit autoupdate does not update the versions
6767
# of dependencies, so we'll have to update this manually.
6868
additional_dependencies:
@@ -114,7 +114,6 @@ repos:
114114
cpp/include/raft/neighbors/detail/faiss_select/|
115115
cpp/include/raft/thirdparty/|
116116
docs/source/sphinxext/github_link[.]py|
117-
cpp/cmake/modules/FindAVX[.]cmake
118117
- id: verify-alpha-spec
119118
- repo: https://github.com/rapidsai/dependency-file-generator
120119
rev: v1.16.0

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pairwise_distance(in1, in2, out=output, metric="euclidean")
223223

224224
## Installing
225225

226-
RAFT's C++ and Python libraries can both be installed through Conda and the Python libraries through Pip.
226+
RAFT's C++ and Python libraries can both be installed through Conda and the Python libraries through Pip.
227227

228228

229229
### Installing C++ and Python through Conda
@@ -233,8 +233,6 @@ The easiest way to install RAFT is through conda and several packages are provid
233233
- `libraft` (optional) C++ shared library containing pre-compiled template instantiations and runtime API.
234234
- `pylibraft` (optional) Python library
235235
- `raft-dask` (optional) Python library for deployment of multi-node multi-GPU algorithms that use the RAFT `raft::comms` abstraction layer in Dask clusters.
236-
- `raft-ann-bench` (optional) Benchmarking tool for easily producing benchmarks that compare RAFT's vector search algorithms against other state-of-the-art implementations.
237-
- `raft-ann-bench-cpu` (optional) Reproducible benchmarking tool similar to above, but doesn't require CUDA to be installed on the machine. Can be used to test in environments with competitive CPUs.
238236

239237
Use the following command, depending on your CUDA version, to install all of the RAFT packages with conda (replace `rapidsai` with `rapidsai-nightly` to install more up-to-date but less stable nightly packages). `mamba` is preferred over the `conda` command.
240238
```bash

build.sh

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ ARGS=$*
1818
# scripts, and that this script resides in the repo dir!
1919
REPODIR=$(cd $(dirname $0); pwd)
2020

21-
VALIDARGS="clean libraft pylibraft raft-dask docs tests template bench-prims bench-ann clean --uninstall -v -g -n --compile-lib --compile-static-lib --allgpuarch --no-nvtx --cpu-only --show_depr_warn --incl-cache-stats --time -h"
22-
HELP="$0 [<target> ...] [<flag> ...] [--cmake-args=\"<args>\"] [--cache-tool=<tool>] [--limit-tests=<targets>] [--limit-bench-prims=<targets>] [--limit-bench-ann=<targets>] [--build-metrics=<filename>]
21+
VALIDARGS="clean libraft pylibraft raft-dask docs tests template bench-prims clean --uninstall -v -g -n --compile-lib --compile-static-lib --allgpuarch --no-nvtx --show_depr_warn --incl-cache-stats --time -h"
22+
HELP="$0 [<target> ...] [<flag> ...] [--cmake-args=\"<args>\"] [--cache-tool=<tool>] [--limit-tests=<targets>] [--limit-bench-prims=<targets>] [--build-metrics=<filename>]
2323
where <target> is:
2424
clean - remove all existing build artifacts and configuration (start over)
2525
libraft - build the raft C++ code only. Also builds the C-wrapper library
@@ -29,7 +29,6 @@ HELP="$0 [<target> ...] [<flag> ...] [--cmake-args=\"<args>\"] [--cache-tool=<to
2929
docs - build the documentation
3030
tests - build the tests
3131
bench-prims - build micro-benchmarks for primitives
32-
bench-ann - build end-to-end ann benchmarks
3332
template - build the example RAFT application template
3433
3534
and <flag> is:
@@ -39,10 +38,8 @@ HELP="$0 [<target> ...] [<flag> ...] [--cmake-args=\"<args>\"] [--cache-tool=<to
3938
--uninstall - uninstall files for specified targets which were built and installed prior
4039
--compile-lib - compile shared library for all components
4140
--compile-static-lib - compile static library for all components
42-
--cpu-only - build CPU only components without CUDA. Applies to bench-ann only currently.
4341
--limit-tests - semicolon-separated list of test executables to compile (e.g. NEIGHBORS_TEST;CLUSTER_TEST)
4442
--limit-bench-prims - semicolon-separated list of prims benchmark executables to compute (e.g. NEIGHBORS_PRIMS_BENCH;CLUSTER_PRIMS_BENCH)
45-
--limit-bench-ann - semicolon-separated list of ann benchmark executables to compute (e.g. HNSWLIB_ANN_BENCH;RAFT_IVF_PQ_ANN_BENCH)
4643
--allgpuarch - build for all supported GPU architectures
4744
--no-nvtx - disable nvtx (profiling markers), but allow enabling it in downstream projects
4845
--show_depr_warn - show cmake deprecation warnings
@@ -71,8 +68,6 @@ BUILD_ALL_GPU_ARCH=0
7168
BUILD_TESTS=OFF
7269
BUILD_TYPE=Release
7370
BUILD_PRIMS_BENCH=OFF
74-
BUILD_ANN_BENCH=OFF
75-
BUILD_CPU_ONLY=OFF
7671
COMPILE_LIBRARY=OFF
7772
INSTALL_TARGET=install
7873
BUILD_REPORT_METRICS=""
@@ -174,21 +169,6 @@ function limitBench {
174169
fi
175170
}
176171

177-
function limitAnnBench {
178-
# Check for option to limit the set of test binaries to build
179-
if [[ -n $(echo $ARGS | { grep -E "\-\-limit\-bench-ann" || true; } ) ]]; then
180-
# There are possible weird edge cases that may cause this regex filter to output nothing and fail silently
181-
# the true pipe will catch any weird edge cases that may happen and will cause the program to fall back
182-
# on the invalid option error
183-
LIMIT_ANN_BENCH_TARGETS=$(echo $ARGS | sed -e 's/.*--limit-bench-ann=//' -e 's/ .*//')
184-
if [[ -n ${LIMIT_ANN_BENCH_TARGETS} ]]; then
185-
# Remove the full LIMIT_TEST_TARGETS argument from list of args so that it passes validArgs function
186-
ARGS=${ARGS//--limit-bench-ann=$LIMIT_ANN_BENCH_TARGETS/}
187-
ANN_BENCH_TARGETS=${LIMIT_ANN_BENCH_TARGETS}
188-
fi
189-
fi
190-
}
191-
192172
function buildMetrics {
193173
# Check for multiple build-metrics options
194174
if [[ $(echo $ARGS | { grep -Eo "\-\-build\-metrics" || true; } | wc -l ) -gt 1 ]]; then
@@ -219,7 +199,6 @@ if (( ${NUMARGS} != 0 )); then
219199
cacheTool
220200
limitTests
221201
limitBench
222-
limitAnnBench
223202
buildMetrics
224203
for a in ${ARGS}; do
225204
if ! (echo " ${VALIDARGS} " | grep -q " ${a} "); then
@@ -349,18 +328,6 @@ if hasArg bench-prims || (( ${NUMARGS} == 0 )); then
349328
fi
350329
fi
351330

352-
if hasArg bench-ann || (( ${NUMARGS} == 0 )); then
353-
BUILD_ANN_BENCH=ON
354-
CMAKE_TARGET="${CMAKE_TARGET};${ANN_BENCH_TARGETS}"
355-
if hasArg --cpu-only; then
356-
COMPILE_LIBRARY=OFF
357-
BUILD_CPU_ONLY=ON
358-
NVTX=OFF
359-
else
360-
COMPILE_LIBRARY=ON
361-
fi
362-
fi
363-
364331
if hasArg --no-nvtx; then
365332
NVTX=OFF
366333
fi
@@ -405,7 +372,7 @@ fi
405372

406373
################################################################################
407374
# Configure for building all C++ targets
408-
if (( ${NUMARGS} == 0 )) || hasArg libraft || hasArg docs || hasArg tests || hasArg bench-prims || hasArg bench-ann; then
375+
if (( ${NUMARGS} == 0 )) || hasArg libraft || hasArg docs || hasArg tests || hasArg bench-prims; then
409376
if (( ${BUILD_ALL_GPU_ARCH} == 0 )); then
410377
RAFT_CMAKE_CUDA_ARCHITECTURES="NATIVE"
411378
echo "Building for the architecture of the GPU in the system..."
@@ -432,8 +399,6 @@ if (( ${NUMARGS} == 0 )) || hasArg libraft || hasArg docs || hasArg tests || has
432399
-DDISABLE_DEPRECATION_WARNINGS=${DISABLE_DEPRECATION_WARNINGS} \
433400
-DBUILD_TESTS=${BUILD_TESTS} \
434401
-DBUILD_PRIMS_BENCH=${BUILD_PRIMS_BENCH} \
435-
-DBUILD_ANN_BENCH=${BUILD_ANN_BENCH} \
436-
-DBUILD_CPU_ONLY=${BUILD_CPU_ONLY} \
437402
-DCMAKE_MESSAGE_LOG_LEVEL=${CMAKE_LOG_LEVEL} \
438403
${CACHE_ARGS} \
439404
${EXTRA_CMAKE_ARGS}
@@ -505,11 +470,6 @@ if (( ${NUMARGS} == 0 )) || hasArg raft-dask; then
505470
python -m pip install --no-build-isolation --no-deps --config-settings rapidsai.disable-cuda=true ${REPODIR}/python/raft-dask
506471
fi
507472

508-
# Build and (optionally) install the raft-ann-bench Python package
509-
if (( ${NUMARGS} == 0 )) || hasArg bench-ann; then
510-
python -m pip install --no-build-isolation --no-deps --config-settings rapidsai.disable-cuda=true ${REPODIR}/python/raft-ann-bench -vvv
511-
fi
512-
513473
if hasArg docs; then
514474
set -x
515475
export RAPIDS_VERSION="$(sed -E -e 's/^([0-9]{2})\.([0-9]{2})\.([0-9]{2}).*$/\1.\2.\3/' "${REPODIR}/VERSION")"

ci/build_python.sh

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,5 @@ rapids-conda-retry mambabuild \
4141
conda/recipes/raft-dask
4242

4343
sccache --show-adv-stats
44-
sccache --zero-stats
45-
46-
# Build ann-bench for each cuda and python version
47-
rapids-conda-retry mambabuild \
48-
--no-test \
49-
--channel "${CPP_CHANNEL}" \
50-
--channel "${RAPIDS_CONDA_BLD_OUTPUT_DIR}" \
51-
conda/recipes/raft-ann-bench
52-
53-
sccache --show-adv-stats
54-
55-
# Build ann-bench-cpu only in CUDA 11 jobs since it only depends on python
56-
# version
57-
RAPIDS_CUDA_MAJOR="${RAPIDS_CUDA_VERSION%%.*}"
58-
if [[ ${RAPIDS_CUDA_MAJOR} == "11" ]]; then
59-
sccache --zero-stats
60-
61-
rapids-conda-retry mambabuild \
62-
--no-test \
63-
--channel "${CPP_CHANNEL}" \
64-
--channel "${RAPIDS_CONDA_BLD_OUTPUT_DIR}" \
65-
conda/recipes/raft-ann-bench-cpu
66-
67-
sccache --show-adv-stats
68-
fi
6944

7045
rapids-upload-conda-to-s3 python

ci/release/update-version.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ sed_runner "/^set(RAFT_VERSION/ s|\".*\"|\"${NEXT_SHORT_TAG}\"|g" docs/source/bu
8181
sed_runner "s|branch-[0-9][0-9].[0-9][0-9]|branch-${NEXT_SHORT_TAG}|g" docs/source/build.md
8282
sed_runner "/rapidsai\/raft/ s|branch-[0-9][0-9].[0-9][0-9]|branch-${NEXT_SHORT_TAG}|g" docs/source/developer_guide.md
8383

84-
sed_runner "s|:[0-9][0-9].[0-9][0-9]|:${NEXT_SHORT_TAG}|g" docs/source/raft_ann_benchmarks.md
85-
8684
sed_runner "s|branch-[0-9][0-9].[0-9][0-9]|branch-${NEXT_SHORT_TAG}|g" README.md
8785

8886
# .devcontainer files

conda/environments/bench_ann_cuda-118_arch-aarch64.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

conda/environments/bench_ann_cuda-118_arch-x86_64.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

conda/environments/bench_ann_cuda-120_arch-aarch64.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

conda/environments/bench_ann_cuda-120_arch-x86_64.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)