Skip to content

Conversation

@ldematte
Copy link
Contributor

@ldematte ldematte commented Jul 12, 2025

Similar to #1109, but for HNSW index type (a bit simpler).

#1109 replaces direct allocations of CAGRA index params (via Memory Arenas) with calls to the cuvsCagraIndexParamsCreate() and cuvsCagraIndexParamsDestroy() in the C-API. This ensures that the Java API is insulated from changes to show the C-API is implemented.

The changes in this PR (#1110) make similar changes, but for the HNSW index, and reuses the CloseableHandle to ensure cleanup.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jul 12, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cjnolet
Copy link
Member

cjnolet commented Jul 16, 2025

Linking cjnolet/nv_elastic#22

Copy link
Contributor

@mythrocks mythrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. This is a little simpler than #1109.

I'll see about rebasing this.

@mythrocks
Copy link
Contributor

mythrocks commented Jul 24, 2025

(Adding myself as an assignee, while working on the rebase.)

@mythrocks mythrocks changed the title [Review][Java] Fix HNSW params allocation [Java] Fix HNSW params allocation Jul 24, 2025
@mythrocks
Copy link
Contributor

/ok to test 37fc956

@mythrocks
Copy link
Contributor

/ok to test 053f9e5

@mythrocks
Copy link
Contributor

/ok to test 0a52813

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mythrocks
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit 549d970 into rapidsai:branch-25.08 Jul 25, 2025
100 of 102 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Elasticsearch + cuVS Team Board Jul 25, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Elasticsearch + cuVS Team Jul 25, 2025
rapids-bot bot pushed a commit that referenced this pull request Jul 29, 2025
…dIndexParamsCreate (#1147)

Using `cuvsTieredIndexParamsCreate` and `cuvsTieredIndexParamsDestroy` now instead of allocating arena in Java.
  -Used CloseableHandle and CuvsParamsHelper as used in #1109 and #1110 for consistency
  
  This fixes #1138

Authors:
  - Puneet Ahuja (https://github.com/punAhuja)

Approvers:
  - MithunR (https://github.com/mythrocks)

URL: #1147
lowener pushed a commit to lowener/cuvs that referenced this pull request Aug 11, 2025
Similar to rapidsai#1109, but for HNSW index type (a bit simpler).

rapidsai#1109 replaces direct allocations of CAGRA index params (via Memory Arenas) with calls to the `cuvsCagraIndexParamsCreate()` and `cuvsCagraIndexParamsDestroy()` in the C-API.  This ensures that the Java API is insulated from changes to show the C-API is implemented.

The changes in this PR (rapidsai#1110) make similar changes, but for the HNSW index, and reuses the `CloseableHandle` to ensure cleanup.

Authors:
  - Lorenzo Dematté (https://github.com/ldematte)
  - MithunR (https://github.com/mythrocks)

Approvers:
  - MithunR (https://github.com/mythrocks)
  - Chris Hegarty (https://github.com/ChrisHegarty)

URL: rapidsai#1110
lowener pushed a commit to lowener/cuvs that referenced this pull request Aug 11, 2025
…dIndexParamsCreate (rapidsai#1147)

Using `cuvsTieredIndexParamsCreate` and `cuvsTieredIndexParamsDestroy` now instead of allocating arena in Java.
  -Used CloseableHandle and CuvsParamsHelper as used in rapidsai#1109 and rapidsai#1110 for consistency
  
  This fixes rapidsai#1138

Authors:
  - Puneet Ahuja (https://github.com/punAhuja)

Approvers:
  - MithunR (https://github.com/mythrocks)

URL: rapidsai#1147
enp1s0 pushed a commit to enp1s0/cuvs that referenced this pull request Aug 22, 2025
Similar to rapidsai#1109, but for HNSW index type (a bit simpler).

rapidsai#1109 replaces direct allocations of CAGRA index params (via Memory Arenas) with calls to the `cuvsCagraIndexParamsCreate()` and `cuvsCagraIndexParamsDestroy()` in the C-API.  This ensures that the Java API is insulated from changes to show the C-API is implemented.

The changes in this PR (rapidsai#1110) make similar changes, but for the HNSW index, and reuses the `CloseableHandle` to ensure cleanup.

Authors:
  - Lorenzo Dematté (https://github.com/ldematte)
  - MithunR (https://github.com/mythrocks)

Approvers:
  - MithunR (https://github.com/mythrocks)
  - Chris Hegarty (https://github.com/ChrisHegarty)

URL: rapidsai#1110
enp1s0 pushed a commit to enp1s0/cuvs that referenced this pull request Aug 22, 2025
…dIndexParamsCreate (rapidsai#1147)

Using `cuvsTieredIndexParamsCreate` and `cuvsTieredIndexParamsDestroy` now instead of allocating arena in Java.
  -Used CloseableHandle and CuvsParamsHelper as used in rapidsai#1109 and rapidsai#1110 for consistency
  
  This fixes rapidsai#1138

Authors:
  - Puneet Ahuja (https://github.com/punAhuja)

Approvers:
  - MithunR (https://github.com/mythrocks)

URL: rapidsai#1147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants