-
Notifications
You must be signed in to change notification settings - Fork 194
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
[BUG] (?) raft::neighbors::ivf_pq::search<float, int64_t> returns good neighbors indices, but zero distances #1480
Comments
The following issue can be mitigated by patching ivf_pq_search.cuh in the following way (for <float, int64_t>):
|
Further update for
|
@alexanderguzhva just to clarify- did your last change fixed the entire issue or does it still require the change in your prior comment? @tfeher (and @achirkin once you are back in the office), any ideas here? It almost seems like either something is going on in the |
The last change fixed the issue completely. |
Thanks @alexanderguzhva for the description and for providing a fix! @achirkin will investigate the issue further. |
Hi @alexanderguzhva , I've not yet been able to reproduce the issue in our tests on our synthetic data. |
@achirkin I'll try to grab two PTX-es as well... |
Thanks for the full snippet! This is getting funny: I've just compiled it with the latest raft and the output looked fine (non-zero distances). I'll check with other gpus and with the raft commit by the hash you shared and come back later. |
I'm using A100 with CUDA 11.4.2 |
fyi, CUDA 11.8 seems to solve this problem |
Thanks for the update. I tried A100 and RTX3090, on CUDA 11.4.2 (gcc 10.3) and CUDA 11.8 (gcc 11.3) this morning, still not seeing any zero distances. |
well, clang is used for nvcc Here is the gist with the PTX for patched version of Raft for CUDA 11.4.2, CC=80: https://gist.github.com/alexanderguzhva/f3d86dc42d7a11ff85293c8804e304d4 no conda is used, pure C++ / CUDA only :) |
Oh, could you please then show the exact command you use to compile the file (or the corresponding line in compile_commands.json if you're using cmake) also with clang version? |
Describe the bug
raft::neighbors::ivf_pq::search<float, int64_t> returns good neighbors indices, but zero distances.
Steps/Code to reproduce bug
The code looks like this
All other settings seem to be default ones
Environment details (please complete the following information):
upstream hash is "a98295b516ef58bc855177077860bab2a2a76d77" (Apr 12 ?)
Additional context
Maybe, I'm missing something to the degree of being blind.
The text was updated successfully, but these errors were encountered: