-
Notifications
You must be signed in to change notification settings - Fork 38
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
faiss-gpu: index_cpu_to_gpu() hangs (doesn't occur with the conda package) #54
Comments
https://github.com/kyamagu/faiss-wheels/blob/main/scripts/build_Linux.sh#L8 it's indeed built for cuda 10 |
This is likely due to https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#gpu-compilation |
Turns out Meanwhile, you can check if the application is really crashing or not by setting |
Check if the artifact in this CI run solves the issue. These wheels are built with CUDA 11.0. |
@kyamagu: I tried out the wheels, but not successfully: [..] EDIT: Looks like this was about Python version. Let me try to fix that. |
@igor0 What is the message if you do |
OK, yeah, that seems to work! (Not sure how that's different from what I was trying previously.) That wheel seems to fix my trivial repro, so it addresses the issue, at least as far as I can tell. Presumably this particular wheel won't work for someone who has CUDA 10, but that's a different problem. That's why PyTorch versions are so complicated. |
Hi, how can I access the wheel from the github action? |
I install the faiss-gpu from the pypi . it does not work.... I also use the A100 |
The wheel is not yet available on PyPI. There is an issue in wheel package size that prevents CUDA 11 based wheel from pypi upload. |
How could I download the wheel file from the action you mentioned above |
Sorry to bother you. But I do not know how to download the wheel from the action. All I can see is the building log when I click into this link |
See the artifact in the actions |
Thanks~ It works~ |
Hello @kyamagu ! The artifact that you mentioned has already expired! Can you please tell us an alternative to try if possible? |
Hey everyone! Thanks a lot for this chain! My issue got solved! Issue: I was not able to use FAISS on the NVIDIA A100. The FAISS index was not getting pushed to the GPU! For people who want a solution at one place. Please follow these steps below:
And you are good to go! Thanks to @kyamagu for maintaining the repo! |
|
When I install faiss-gpu via pip, index_cpu_to_gpu() seems to hang forever. For example, this code sample hangs for me:
The index_cpu_to_gpu() will hang, spinning a CPU at 100% seemingly forever, mostly in
libnvidia-ptxjitcompiler.so.510.54
.I confirmed this on two different machines with different GPUs (A100 and A10G).
I found two workarounds:
Maybe faiss-gpu wheel isn't built with CUDA 11 support, and that's why it doesn't work with A100 / A10G?
The text was updated successfully, but these errors were encountered: