Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b79000a
Fix update-version.sh to remove leading zeros.
mythrocks Jun 10, 2025
8842494
Merge branch 'branch-25.08' into c-api-version-bump
cjnolet Jun 11, 2025
8250503
Merge branch 'branch-25.08' into c-api-version-bump
mythrocks Jun 12, 2025
a5f3ba7
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 13, 2025
24cad44
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 16, 2025
b973420
Switched to using existing version header.
mythrocks Jun 17, 2025
744139d
Copyright date.
mythrocks Jun 17, 2025
59cc989
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 18, 2025
bdf6866
Removing unnecessary update of header in update-version.sh.
mythrocks Jun 24, 2025
d6f92d3
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 24, 2025
35d91f9
Merge branch 'branch-25.08' into c-api-version-bump
mythrocks Jun 25, 2025
b75db0f
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 26, 2025
ed14bb7
Review changes:
mythrocks Jun 26, 2025
ad28396
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 26, 2025
0a98174
Fixed reference to <cuvs/version_config.h>
mythrocks Jun 26, 2025
af53e0e
Fixed another reference to version_config.hpp
mythrocks Jun 26, 2025
bda2c67
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 26, 2025
663013a
Debugging CI build. Must revert.
mythrocks Jun 26, 2025
3cb508e
Revert version header changes:
mythrocks Jun 27, 2025
fc631e1
Merge remote-tracking branch 'origin/branch-25.08' into c-api-version…
mythrocks Jun 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
java-build:
needs: cpp-build
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.06
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
conda-java-tests:
needs: [conda-cpp-build, changed-files]
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.06
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_java
with:
build_type: pull-request
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
sha: ${{ inputs.sha }}
conda-java-tests:
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.06
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08
with:
build_type: ${{ inputs.build_type }}
branch: ${{ inputs.branch }}
Expand Down
7 changes: 1 addition & 6 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
########################
# CUVS Version Updater #
########################
Expand Down Expand Up @@ -108,8 +108,3 @@ done
sed_runner "s| CuVS [[:digit:]]\{2\}\.[[:digit:]]\{2\} | CuVS ${NEXT_SHORT_TAG} |g" java/README.md
sed_runner "s|-[[:digit:]]\{2\}\.[[:digit:]]\{2\}\.[[:digit:]]\{1,2\}\.jar|-${NEXT_FULL_JAVA_TAG}\.jar|g" java/examples/README.md
sed_runner "s|/[[:digit:]]\{2\}\.[[:digit:]]\{2\}\.[[:digit:]]\{1,2\}/|/${NEXT_FULL_JAVA_TAG}/|g" java/examples/README.md

# Update C API version.
sed_runner "s|CUVS_VERSION_MAJOR = [0-9][0-9]|CUVS_VERSION_MAJOR = ${NEXT_MAJOR}|g" cpp/include/cuvs/core/c_api.h
sed_runner "s|CUVS_VERSION_MINOR = [0-9][0-9]|CUVS_VERSION_MINOR = ${NEXT_MINOR}|g" cpp/include/cuvs/core/c_api.h
sed_runner "s|CUVS_VERSION_PATCH = [0-9][0-9]|CUVS_VERSION_PATCH = ${NEXT_PATCH}|g" cpp/include/cuvs/core/c_api.h
5 changes: 3 additions & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# =============================================================================
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -37,7 +37,7 @@ project(
set(CMAKE_INSTALL_MESSAGE LAZY)

# Write the version header
rapids_cmake_write_version_file(include/cuvs/version_config.hpp)
rapids_cmake_write_version_file(include/cuvs/version_config.h)

# ##################################################################################################
# * build type ---------------------------------------------------------------
Expand Down Expand Up @@ -747,6 +747,7 @@ target_compile_definitions(cuvs::cuvs INTERFACE $<$<BOOL:${CUVS_NVTX}>:NVTX_ENAB
target_include_directories(
cuvs_c
PUBLIC "$<BUILD_INTERFACE:${DLPACK_INCLUDE_DIR}>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>"
INTERFACE "$<INSTALL_INTERFACE:include>"
)

Expand Down
8 changes: 3 additions & 5 deletions cpp/include/cuvs/core/c_api.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, NVIDIA CORPORATION.
* Copyright (c) 2024-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,14 +16,12 @@

#pragma once

#include <cuvs/version_config.h>

#include <cuda_runtime.h>
#include <stdbool.h>
#include <stdint.h>

static const uint16_t CUVS_VERSION_MAJOR = 25;
static const uint16_t CUVS_VERSION_MINOR = 06;
static const uint16_t CUVS_VERSION_PATCH = 00;
Comment thread
mythrocks marked this conversation as resolved.

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
8 changes: 5 additions & 3 deletions cpp/src/core/c_api.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, NVIDIA CORPORATION.
* Copyright (c) 2024-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,10 +14,9 @@
* limitations under the License.
*/

#include <cstdint>
#include <cuvs/core/c_api.h>
#include <cuvs/core/exceptions.hpp>
#include <memory>

#include <raft/core/resource/cuda_stream.hpp>
#include <raft/core/resources.hpp>
#include <rmm/cuda_stream_view.hpp>
Expand All @@ -27,6 +26,9 @@
#include <rmm/mr/device/per_device_resource.hpp>
#include <rmm/mr/device/pool_memory_resource.hpp>
#include <rmm/mr/host/pinned_memory_resource.hpp>

#include <cstdint>
#include <memory>
#include <thread>

extern "C" cuvsError_t cuvsResourcesCreate(cuvsResources_t* res)
Expand Down
3 changes: 2 additions & 1 deletion cpp/tests/core/c_api.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, NVIDIA CORPORATION.
* Copyright (c) 2024-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
*/

#include <cuvs/core/c_api.h>

#include <stdio.h>
#include <stdlib.h>

Expand Down
6 changes: 3 additions & 3 deletions java/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ This maven project contains examples for CAGRA, HNSW, and Bruteforce algorithms.
### CAGRA Example
In the current directory do:
```
mvn package && java --enable-native-access=ALL-UNNAMED -cp target/cuvs-java-examples-25.06.0.jar:$HOME/.m2/repository/com/nvidia/cuvs/cuvs-java/25.06.0/cuvs-java-25.06.0.jar com.nvidia.cuvs.examples.CagraExample
mvn package && java --enable-native-access=ALL-UNNAMED -cp target/cuvs-java-examples-25.08.0.jar:$HOME/.m2/repository/com/nvidia/cuvs/cuvs-java/25.08.0/cuvs-java-25.08.0.jar com.nvidia.cuvs.examples.CagraExample
```

### HNSW Example
In the current directory do:
```
mvn package && java --enable-native-access=ALL-UNNAMED -cp target/cuvs-java-examples-25.06.0.jar:$HOME/.m2/repository/com/nvidia/cuvs/cuvs-java/25.06.0/cuvs-java-25.06.0.jar com.nvidia.cuvs.examples.HnswExample
mvn package && java --enable-native-access=ALL-UNNAMED -cp target/cuvs-java-examples-25.08.0.jar:$HOME/.m2/repository/com/nvidia/cuvs/cuvs-java/25.08.0/cuvs-java-25.08.0.jar com.nvidia.cuvs.examples.HnswExample
```

### Bruteforce Example
In the current directory do:
```
mvn package && java --enable-native-access=ALL-UNNAMED -cp target/cuvs-java-examples-25.06.0.jar:$HOME/.m2/repository/com/nvidia/cuvs/cuvs-java/25.06.0/cuvs-java-25.06.0.jar com.nvidia.cuvs.examples.BruteForceExample
mvn package && java --enable-native-access=ALL-UNNAMED -cp target/cuvs-java-examples-25.08.0.jar:$HOME/.m2/repository/com/nvidia/cuvs/cuvs-java/25.08.0/cuvs-java-25.08.0.jar com.nvidia.cuvs.examples.BruteForceExample
```
1 change: 1 addition & 0 deletions java/panama-bindings/generate-bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jextract \
--include-dir "${REPODIR}"/java/internal/build/_deps/dlpack-src/include/ \
--include-dir "${CUDA_INCLUDE_DIR}" \
--include-dir "${REPODIR}"/cpp/include \
--include-dir "${REPODIR}"/cpp/build/include \
--output "${REPODIR}/java/cuvs-java/src/main/java22/" \
--target-package ${TARGET_PACKAGE} \
--library cuvs_c \
Expand Down
Loading