rapidsai / raft

RAFT contains fundamental widely-used algorithms and primitives for machine learning and information retrieval. The algorithms are CUDA-accelerated and form building blocks for more easily writing high performance applications.
https://docs.rapids.ai/api/raft/stable/
Apache License 2.0
680 stars 180 forks source link

Fix cagra graph opt bug #2365

Closed enp1s0 closed 2 weeks ago

enp1s0 commented 2 weeks ago

backport of https://github.com/rapidsai/cuvs/pull/192

There is a bug in the current CAGRA graph rank-based neighbor reordering process. A low recall or illegal memory access can occur if there are many detourable nodes from a node to its neighbors, e.g. there is a small subgraph in the initial kNN graph. This PR fixes this.

tfeher commented 2 weeks ago

/merge