Skip to content

Conversation

mayya-sharipova
Copy link
Contributor

Update Nvidia CUVS java library to a newer version that includes strides

@mayya-sharipova mayya-sharipova requested a review from a team as a code owner October 6, 2025 20:28
@mayya-sharipova mayya-sharipova added auto-backport Automatically create backport pull requests when merged :Search Relevance/Vectors Vector search v9.2.1 v9.3.0 labels Oct 6, 2025
@mayya-sharipova mayya-sharipova requested review from ldematte and removed request for a team October 6, 2025 20:28
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 6, 2025
Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

A small change needed but looks good

compileOnly project(':server')
implementation('com.nvidia.cuvs:cuvs-java:25.10.0') {
implementation('com.nvidia.cuvs:cuvs-java:25.10.0-815d86dd') {
changing = true // Ensure that we get updates even when the version number doesn't change. We can remove this once things stabilize
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably don't need this anymore as we have the -hashsuffix now, right @brianseeders ?

Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

LGTM

CuVSMatrix.DataType dataType
) {
try {
return (CuVSMatrix) createDatasetWithStrides$mh.invokeExact(memorySegment, size, dimensions, rowStride, columnStride, dataType);
Copy link
Contributor

Choose a reason for hiding this comment

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

As we don't need columnStride and it's not really supported (yet) in cuvs-java, I think you might want to pass -1 here like you did in 14088bd. So you can remove all the int columnStride params from all these functions and just have rowStride.
But up to you (I'm fine either way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >non-issue :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.1 v9.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants