Skip to content

Commit f4108b9

Browse files
Merge pull request #2140 from cjnolet/2602_fm_fix
Forward merge fix
2 parents caf24ce + 5d5d71c commit f4108b9

459 files changed

Lines changed: 73720 additions & 8040 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ examples/rust/ @rapidsai/cuvs-rust-codeowners
2020

2121
#docs code owners
2222
docs/ @rapidsai/cuvs-docs-codeowners
23+
fern/ @rapidsai/cuvs-docs-codeowners
2324

2425
#cmake code owners
2526
CMakeLists.txt @rapidsai/cuvs-cmake-codeowners

.github/workflows/build.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ jobs:
229229
uses: ./.github/workflows/publish-rust.yaml
230230
docs-build:
231231
if: github.ref_type == 'branch'
232-
needs: python-build
233232
permissions:
234233
actions: read
235234
contents: read

.github/workflows/check-c-abi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ jobs:
128128
- The changes are documented in the changelog
129129
- Migration guide is provided for users
130130
131-
For more information, see the [C ABI documentation](../docs/source/c_developer_guide.md).`
131+
For more information, see the [C API documentation](../fern/pages/c_api/index.md).`
132132
});

.github/workflows/pr.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ jobs:
134134
- '!ci/test_wheel_cuvs.sh'
135135
- '!ci/validate_wheel.sh'
136136
- '!docs/**'
137+
- '!fern/**'
137138
- '!go/**'
138139
- '!img/**'
139140
- '!java/**'
@@ -170,6 +171,7 @@ jobs:
170171
- '!ci/validate_wheel.sh'
171172
- '!Dockerfile'
172173
- '!docs/**'
174+
- '!fern/**'
173175
- '!img/**'
174176
- '!notebooks/**'
175177
- '!python/**'
@@ -209,6 +211,7 @@ jobs:
209211
- '!Dockerfile'
210212
- '!README.md'
211213
- '!docs/**'
214+
- '!fern/**'
212215
- '!go/**'
213216
- '!img/**'
214217
- '!java/**'
@@ -253,6 +256,7 @@ jobs:
253256
- '!cpp/.clang-tidy'
254257
- '!cpp/doxygen/**'
255258
- '!docs/**'
259+
- '!fern/**'
256260
- '!java/**'
257261
- '!go/**'
258262
- '!img/**'
@@ -292,6 +296,7 @@ jobs:
292296
- '!ci/test_wheel_cuvs.sh'
293297
- '!ci/validate_wheel.sh'
294298
- '!docs/**'
299+
- '!fern/**'
295300
- '!go/**'
296301
- '!img/**'
297302
- '!java/**'
@@ -332,6 +337,7 @@ jobs:
332337
- '!ci/test_wheel_cuvs.sh'
333338
- '!ci/validate_wheel.sh'
334339
- '!docs/**'
340+
- '!fern/**'
335341
- '!img/**'
336342
- '!java/**'
337343
- '!notebooks/**'
@@ -581,7 +587,6 @@ jobs:
581587
container_image: "rapidsai/ci-conda:26.08-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}"
582588
script: "ci/build_go.sh"
583589
docs-build:
584-
needs: conda-python-build
585590
permissions:
586591
actions: read
587592
contents: read

build.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ HELP="$0 [<target> ...] [<flag> ...] [--cmake-args=\"<args>\"] [--cache-tool=<to
6767
default action (no args) is to build libcuvs, tests and cuvs targets
6868
"
6969
LIBCUVS_BUILD_DIR=${LIBCUVS_BUILD_DIR:=${REPODIR}/cpp/build}
70-
SPHINX_BUILD_DIR=${REPODIR}/docs
71-
DOXYGEN_BUILD_DIR=${REPODIR}/cpp/doxygen
70+
FERN_DOCS_DIR=${REPODIR}/fern
7271
PYTHON_BUILD_DIR=${REPODIR}/python/cuvs/_skbuild
7372
RUST_BUILD_DIR=${REPODIR}/rust/target
7473
JAVA_BUILD_DIR=${REPODIR}/java/cuvs-java/target
@@ -99,7 +98,9 @@ EXTRA_CMAKE_ARGS=""
9998

10099
# Set defaults for vars that may not have been defined externally
101100
INSTALL_PREFIX=${INSTALL_PREFIX:=${PREFIX:=${CONDA_PREFIX:=$LIBCUVS_BUILD_DIR/install}}}
102-
PARALLEL_LEVEL=${PARALLEL_LEVEL:=$(nproc)}
101+
if [[ -z "${PARALLEL_LEVEL:-}" ]]; then
102+
PARALLEL_LEVEL=$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)
103+
fi
103104
BUILD_ABI=${BUILD_ABI:=ON}
104105

105106
# Default to Ninja if generator is not specified
@@ -371,7 +372,7 @@ fi
371372

372373
################################################################################
373374
# Configure for building all C++ targets
374-
if (( NUMARGS == 0 )) || hasArg libcuvs || hasArg docs || hasArg tests || hasArg bench-prims || hasArg bench-ann || hasArg examples; then
375+
if (( NUMARGS == 0 )) || hasArg libcuvs || hasArg tests || hasArg bench-prims || hasArg bench-ann || hasArg examples; then
375376
COMPILE_LIBRARY=ON
376377
if [[ "${BUILD_SHARED_LIBS}" != "OFF" ]]; then
377378
CMAKE_TARGET+=("cuvs")
@@ -535,13 +536,8 @@ export RAPIDS_VERSION_MAJOR_MINOR
535536

536537
if hasArg docs; then
537538
set -x
538-
cd "${DOXYGEN_BUILD_DIR}"
539-
doxygen Doxyfile
540-
cd "${SPHINX_BUILD_DIR}"
541-
make html
542-
cd "${REPODIR}"/rust
543-
cargo doc -p cuvs --no-deps
544-
rsync -av "${RUST_BUILD_DIR}"/doc/ "${SPHINX_BUILD_DIR}"/build/html/_static/rust
539+
cd "${REPODIR}"
540+
"${FERN_DOCS_DIR}/build_docs.sh" "${FERN_DOCS_MODE:-check}"
545541
fi
546542

547543
################################################################################

c/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ add_library(
8989
src/neighbors/brute_force.cpp
9090
src/neighbors/ivf_flat.cpp
9191
src/neighbors/ivf_pq.cpp
92+
src/neighbors/ivf_sq.cpp
9293
src/neighbors/cagra.cpp
9394
$<$<BOOL:${BUILD_CAGRA_HNSWLIB}>:src/neighbors/hnsw.cpp>
9495
$<$<BOOL:${BUILD_MG_ALGOS}>:src/neighbors/mg_ivf_pq.cpp>

c/include/cuvs/core/all.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <cuvs/neighbors/common.h>
2424
#include <cuvs/neighbors/ivf_flat.h>
2525
#include <cuvs/neighbors/ivf_pq.h>
26+
#include <cuvs/neighbors/ivf_sq.h>
2627
#include <cuvs/neighbors/nn_descent.h>
2728
#include <cuvs/neighbors/refine.h>
2829
#include <cuvs/neighbors/tiered_index.h>

0 commit comments

Comments
 (0)