Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ivf flat specialization header IdxT from uint64_t -> int64_t #1358

Merged

Conversation

ahendriksen
Copy link
Contributor

@ahendriksen ahendriksen commented Mar 20, 2023

The ivf_flat specialization header declarations used a wrong index type.

The specializations for ivf flat are defined for int64_t. The raft_runtime interface also uses the int64_t instances. The ivf_flat specialization header, however, declared an interface using uint64_t.

This is fixed with this PR. Should also reduce compile times for src/distance/neighbors/ivf_flat_search.cu.o

@ahendriksen ahendriksen requested a review from a team as a code owner March 20, 2023 13:11
@github-actions github-actions bot added the cpp label Mar 20, 2023
@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 20, 2023
Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this Allard!

Copy link
Member

@divyegala divyegala left a comment

Choose a reason for hiding this comment

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

Ah, thanks for spotting this. Totally missed the hard-code there.

@cjnolet
Copy link
Member

cjnolet commented Mar 20, 2023

/merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

3 participants