-
Notifications
You must be signed in to change notification settings - Fork 444
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
Unable to install pytorch bindings - lcuda not found #183
Comments
have you solved this problem? |
Yes, it could have been specific to my environment setup (or to my cuda version 11.3). I had to manually link to the |
@akshay-krishnan How to link libcuda.so ? could you say more details about this solution. I still have this problem. |
@akshay-krishnan How did you manually linked libcuda.so? |
Sorry for the late response folks. There was a libcuda.so in this path on my system
I don't know if that is the right libcuda.so to be linked, but installation completed and I was able to import the tinycudann module. |
So I tried replicating this in a new environment, and the fix does not work for me anymore. Its not able to find lcuda even though I have a symlink to libcuda.so in the lib folder that it is searching in. @Tom94 any help here would be great! |
I also tried with cuda 11.7, but I face the same problem, so this is probably not version-specific. |
I was able to resolve my issue regarding |
Add the following line to your
|
The answer from @akshay-krishnan worked for me also, ln -s /usr/lib/x86_64-linux-gnu/libcuda.so anaconda3/envs/nerfstudio/lib/libcuda.so and not, export LIBRARY_PATH="/usr/local/cuda/lib64/stubs:$LIBRARY_PATH" It seems there is no clear-cut solution to this problem, right now. |
@yenchenlin I'm able to install
After setting the path to /usr/local/cuda/lib64/stubs, thank you! However, when I tried to run instant-NGP under nerfstudio I have this error:
I tried
since I do found libcudart.so under /usr/local/cuda/lib64 but it does not resolve the issue. Any suggestions? Thank you very much! |
@KamiCalcium I'm afraid that's an issue on NerfAcc's side, not tcnn. That said, if you would like to reproduce instant-ngp's results, I'd warmly encourage using the official implementation as none of the third party re-implementations I've tried match the performance vs. quality tradeoff. |
I've solved lcuda not found issue, on WSL2 by executing may be helpful to someone. |
I had the same problem installing it in a conda env on WSL. Here is how I solved it. the compiler tries to find so I just created a link for Then it compiled with no error. I hope it helps. |
Just to record, this method also works for WSL2 (Ubuntu 20.02 LTS) |
This also worked on WSL2 Ubuntu 22.04.02, cuda 11.8 with cudnn, Python 3.10 via pip |
It works perfectly! thx! |
The |
I tried with @Zazexy and @samsartor's method: export LIBRARY_PATH="/usr/local/cuda/lib64/stubs:$LIBRARY_PATH"
export LDFLAGS=-L/usr/local/cuda/lib64/stub and it works for me, thank you! |
EDIT: Unfortunately, it is still broken. When I try to run it, I get an |
This works for me, thanks! |
Great! It's the problem. You could also run
It works for me. Thanks. |
Did you find a solution to this Nerfacc related problem? |
Thanks so much. This works and solved my problem. |
LDFLAGS works for me!! Thanks!! |
this works, and if there's no libcuda.so in /usr/lib/x86_64-linux-gnu/, you can symlink one using libcuda.so.1 or something like that by
|
|
I am trying to build the pytorch bindings, but I am unable to because lcuda was not found on my system.
ld: cannot find -lcuda
I have cuda installed in
/usr/local/cuda-11.3
and added/usr/local/cuda-11.3/bin
to my$PATH
and/usr/local/cuda-11.3/lib64/
to my$LD_LIBRARY_PATH
.I am able to build the library itself with cmake, but no success with the torch bindings.
The g++ command fails since it is unable to find lcuda. I also cannot find a libcuda.so in my
/usr/local/cuda-11.3/lib64/
. I found one in/usr/local/cuda-11.3/lib64/stubs/
, and added this path to my LD_LIBRARY_PATH, but that did not help.I appreciate any help on this.
The text was updated successfully, but these errors were encountered: