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 an OOB error in device-side cuvs::neighbors::refine and CAGRA kern_prune #460

Open
wants to merge 4 commits into
base: branch-24.12
Choose a base branch
from

Conversation

achirkin
Copy link
Contributor

@achirkin achirkin commented Nov 11, 2024

IVF-Flat index expects all valid indices during build, which may not be the case in the context of refinement.
At the same time, cagra::detail::graph::kern_prune fails with OOB error if some indices are invalid.

This PR tweaks both kernels to avoid touching the input data with an invalid index.

Fixes #337

@achirkin achirkin changed the title Fix an OOB error in device-side cuvs::neighbors::refine Fix an OOB error in device-side cuvs::neighbors::refine and CAGRA kern_prune Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CMake cpp non-breaking Introduces a non-breaking change
Projects
Status: In Progress
1 participant