Repository navigation
Open
Labels
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cudaParallel computing platform and API6.topic: pythonPython is a high-level, general-purpose programming language.
Description
Describe the bug
Pytorch uses dlopen to load libnvrtc.so without publicly declaring a dependency on it: https://github.com/pytorch/pytorch/blob/014f91a9d9f94ac9a7f0711600240d7cd7f69844/aten/src/ATen/cuda/detail/LazyNVRTC.cpp#L78-L83. No declaration -> no runpaths preserved after installation -> dlopen fails.
Steps To Reproduce
Steps to reproduce the behavior:
nix run github:SomeoneSerge/dust3r.nix/cf159ccbab05b6b023b8f5050572adfa21b30a34#pretrained;- open the web page;
- feed 2+ images;
- Observe a runtime error
File "/nix/store/c64592rcivfc0w373nfh41j9lshb0w3s-python3.11-roma-unstable-2024-02-26/lib/python3.11/site-packages/roma/mappings.py", line 77, in procrustes
R, DS = _ProcrustesManualDerivatives.apply(M, force_rotation, regularization, gradient_eps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/n33zdaqxa8j711plws8xyjpzdnw0idmr-python3.11-torch-2.2.1/lib/python3.11/site-packages/torch/autograd/function.py", line 553, in apply
return super().apply(*args, **kwargs) # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/c64592rcivfc0w373nfh41j9lshb0w3s-python3.11-roma-unstable-2024-02-26/lib/python3.11/site-packages/roma/mappings.py", line 22, in forward
flip = (torch.det(U) * torch.det(V) < 0)
^^^^^^^^^^^^
RuntimeError: Error in dlopen for library libnvrtc.so.12and libnvrtc-26bfb51d.so.12
Additional context
Add any other context about the problem here.
Notify maintainers
@NixOS/cuda-maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output hereAdd a 👍 reaction to issues you find important.
Reacted by Ryan Swart, Ethan Rooke, Hugo Herter, Josefine Katzke, Alex Martens, Valtýr Kári Daníelsson and ethernet
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cudaParallel computing platform and API6.topic: pythonPython is a high-level, general-purpose programming language.
Projects
- StatusShow more project fieldsNew
Activity
nix: hotfix dlopen() abuse issues upstream
nix: hotfix dlopen() abuse issues upstream
python3Packages.torch: cuda: support dlopen(libnvrtc)
hoh commentedon Mar 29, 2024
I am facing the same issue when using
transformers, thanks for looking into this !SomeoneSerge commentedon Mar 29, 2024
You can already use the version in the PR: I just need to rewrite because I broke some jetson-related stuff. Alternatively, the overlay in SomeoneSerge/dust3r.nix@8715f78 should work too