-
Notifications
You must be signed in to change notification settings - Fork 9
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
Linking issue with libpthread #24
Comments
Interesting, at a first glance I have no idea why that is happening. I just tried on my Ubuntu 22.04 system with cuda (11.8) installed from the ubuntu repo and I cannot reproduce the issue.
@Robert-PrescientImaging can you try with CUDA 11.8 as well? In the conda-forge builds using cuda 10, 11.0, 11.1, 11.2, I have also never seen this issue. |
Another post https://forums.developer.nvidia.com/t/nvlink-fatal-could-not-open-input-file-when-linking-with-empty-static-library/208517/7 claims that this was fixed with cuda 11.7 |
Good to know. @KrisThielemans any idea why this is not a problem for the conda-forge builds with cuda < 11.7? |
of course I don't! 😄 A guess: conda comes with its own compiler and libraries on Linux I believe, so maybe they did something else than Ubuntu. |
Hehe. So should we just encourage Ubuntu users to use CUDA >= 11.7 then? |
Upgrading to CUDA 12.1 resolved the issue. |
You may want to but unless anyone else has this particularly niche issue, I suggest leaving this thread as documentation to refer to. |
Just had the same issue for someone with cuda 11.5. (He also had another problem for Gadgetron which has been fixed in later cuda versions). |
ok. just added a note + reference to this issue in the README for ubuntu users |
This is something that apparently occurs on modern Ubuntu systems.
Understanding of this issue has tested my knowledge but I think the fix/workaround is worth documenting.
I am building on the following system (WSL
Ubuntu 22.04 LTS
):Installing with CUDA installed via
sudo apt-get install nvidia-cuda-toolkit
I get the following error.
I do not fully understand this issue but it related to
/usr/lib/x86_64-linux-gnu/libpthread.a
being only 8 bytes with modern version oflibc
?The best description I found was here: https://matsci.org/t/lammps-users-kokkos-linker-error-nvidia-libdl-a/41050
The fix I implemented for this was to change
OpenMP_pthread_LIBRARY
from/usr/lib/x86_64-linux-gnu/libpthread.a
to/usr/lib/x86_64-linux-gnu/libpthread.so.0
This allows parallelproj to build and the tests pass.
Any input from @gschramm or @KrisThielemans would be appreciated.
The text was updated successfully, but these errors were encountered: