Skip to content

Commit 308e9ff

Browse files
Merge branch 'branch-25.08' into vivek/enforce-java-code-format-maven
2 parents 9b2fbeb + 4c32281 commit 308e9ff

10 files changed

Lines changed: 22 additions & 23 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
java-build:
6565
needs: cpp-build
6666
secrets: inherit
67-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.06
67+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08
6868
with:
6969
build_type: ${{ inputs.build_type || 'branch' }}
7070
branch: ${{ inputs.branch }}

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
conda-java-tests:
156156
needs: [conda-cpp-build, changed-files]
157157
secrets: inherit
158-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.06
158+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08
159159
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_java
160160
with:
161161
build_type: pull-request

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
sha: ${{ inputs.sha }}
4848
conda-java-tests:
4949
secrets: inherit
50-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.06
50+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08
5151
with:
5252
build_type: ${{ inputs.build_type }}
5353
branch: ${{ inputs.branch }}

ci/release/update-version.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
2+
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
33
########################
44
# CUVS Version Updater #
55
########################
@@ -108,8 +108,3 @@ done
108108
sed_runner "s| CuVS [[:digit:]]\{2\}\.[[:digit:]]\{2\} | CuVS ${NEXT_SHORT_TAG} |g" java/README.md
109109
sed_runner "s|-[[:digit:]]\{2\}\.[[:digit:]]\{2\}\.[[:digit:]]\{1,2\}\.jar|-${NEXT_FULL_JAVA_TAG}\.jar|g" java/examples/README.md
110110
sed_runner "s|/[[:digit:]]\{2\}\.[[:digit:]]\{2\}\.[[:digit:]]\{1,2\}/|/${NEXT_FULL_JAVA_TAG}/|g" java/examples/README.md
111-
112-
# Update C API version.
113-
sed_runner "s|CUVS_VERSION_MAJOR = [0-9][0-9]|CUVS_VERSION_MAJOR = ${NEXT_MAJOR}|g" cpp/include/cuvs/core/c_api.h
114-
sed_runner "s|CUVS_VERSION_MINOR = [0-9][0-9]|CUVS_VERSION_MINOR = ${NEXT_MINOR}|g" cpp/include/cuvs/core/c_api.h
115-
sed_runner "s|CUVS_VERSION_PATCH = [0-9][0-9]|CUVS_VERSION_PATCH = ${NEXT_PATCH}|g" cpp/include/cuvs/core/c_api.h

cpp/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ project(
3737
set(CMAKE_INSTALL_MESSAGE LAZY)
3838

3939
# Write the version header
40-
rapids_cmake_write_version_file(include/cuvs/version_config.hpp)
40+
rapids_cmake_write_version_file(include/cuvs/version_config.h)
4141

4242
# ##################################################################################################
4343
# * build type ---------------------------------------------------------------
@@ -746,6 +746,7 @@ target_compile_definitions(cuvs::cuvs INTERFACE $<$<BOOL:${CUVS_NVTX}>:NVTX_ENAB
746746
target_include_directories(
747747
cuvs_c
748748
PUBLIC "$<BUILD_INTERFACE:${DLPACK_INCLUDE_DIR}>"
749+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>"
749750
INTERFACE "$<INSTALL_INTERFACE:include>"
750751
)
751752

@@ -793,7 +794,7 @@ target_compile_definitions(cuvs::cuvs INTERFACE $<$<BOOL:${CUVS_NVTX}>:NVTX_ENAB
793794
endif()
794795

795796
install(
796-
FILES ${CMAKE_CURRENT_BINARY_DIR}/include/cuvs/version_config.hpp
797+
FILES ${CMAKE_CURRENT_BINARY_DIR}/include/cuvs/version_config.h
797798
COMPONENT cuvs
798799
DESTINATION include/cuvs
799800
)

cpp/include/cuvs/core/c_api.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, NVIDIA CORPORATION.
2+
* Copyright (c) 2024-2025, NVIDIA CORPORATION.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,10 +20,6 @@
2020
#include <stdbool.h>
2121
#include <stdint.h>
2222

23-
static const uint16_t CUVS_VERSION_MAJOR = 25;
24-
static const uint16_t CUVS_VERSION_MINOR = 06;
25-
static const uint16_t CUVS_VERSION_PATCH = 00;
26-
2723
#ifdef __cplusplus
2824
extern "C" {
2925
#endif

cpp/include/cuvs/neighbors/all_neighbors.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <variant>
2424

2525
namespace cuvs::neighbors::all_neighbors {
26+
// For re-exporting into all_neighbors namespace
27+
namespace graph_build_params = cuvs::neighbors::graph_build_params;
2628
/**
2729
* @defgroup all_neighbors_cpp_params The all-neighbors algorithm parameters.
2830
* @{

cpp/src/core/c_api.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, NVIDIA CORPORATION.
2+
* Copyright (c) 2024-2025, NVIDIA CORPORATION.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include <cstdint>
1817
#include <cuvs/core/c_api.h>
1918
#include <cuvs/core/exceptions.hpp>
20-
#include <memory>
19+
#include <cuvs/version_config.h>
20+
2121
#include <raft/core/resource/cuda_stream.hpp>
2222
#include <raft/core/resources.hpp>
2323
#include <rmm/cuda_stream_view.hpp>
@@ -27,6 +27,9 @@
2727
#include <rmm/mr/device/per_device_resource.hpp>
2828
#include <rmm/mr/device/pool_memory_resource.hpp>
2929
#include <rmm/mr/host/pinned_memory_resource.hpp>
30+
31+
#include <cstdint>
32+
#include <memory>
3033
#include <thread>
3134

3235
extern "C" cuvsError_t cuvsResourcesCreate(cuvsResources_t* res)

cpp/tests/core/c_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, NVIDIA CORPORATION.
2+
* Copyright (c) 2024-2025, NVIDIA CORPORATION.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,6 +15,8 @@
1515
*/
1616

1717
#include <cuvs/core/c_api.h>
18+
#include <cuvs/version_config.h>
19+
1820
#include <stdio.h>
1921
#include <stdlib.h>
2022

java/examples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ This maven project contains examples for CAGRA, HNSW, and Bruteforce algorithms.
1111
### CAGRA Example
1212
In the current directory do:
1313
```
14-
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
14+
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
1515
```
1616

1717
### HNSW Example
1818
In the current directory do:
1919
```
20-
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
20+
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
2121
```
2222

2323
### Bruteforce Example
2424
In the current directory do:
2525
```
26-
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
26+
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
2727
```

0 commit comments

Comments
 (0)