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

installation issue #18

Closed
gardiens opened this issue Apr 11, 2024 · 1 comment
Closed

installation issue #18

gardiens opened this issue Apr 11, 2024 · 1 comment

Comments

@gardiens
Copy link

gardiens commented Apr 11, 2024

Hello, Thank you a lot for this repo
I run into an error lately when I tried to install your repo:

line 7, in <module>
    from frnn import _C
    ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory

Sometime this error happen on prefix_sum as well but not with the version I am currently using,
I am using torch 2.2.0 with cuda 11.8

@gardiens
Copy link
Author

gardiens commented Apr 11, 2024

Ok I found the solution,
If you are experiencing strange :

  • ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directorylibtorch.so or
    ImportError: libtcudartso.11: cannot open shared object file: No such file or directory even though you were working with cuda 12.0,
    Check if their is a build folder in FRNN and FRNN/external/prefix_sum and remove it because the installation withpip install .or python setup.py install doesn't recompile the binary by default and it may have been compiled with the wrong cuda compiler , ( even if you did pip uninstall frnn/prefix_sum). if it still doesn't work, remove every other created filed by setup.py such as cdist.
    I had this issue when I was trying to upgrade my pytorch and therefore upgrading my CUDA version
    NB: in this repo especially, if your setup.py or pip install . doesn't take a lot of times in FRNN it often means that it will use again a built binary which is unsafe when changing cuda version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant