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

Add generic driver files to $LD_LIBRARY_PATH #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Aug 2, 2024

No description provided.

@Atry Atry changed the title Add generic so files to $LD_LIBRARY_PATH Add generic driver files to $LD_LIBRARY_PATH Aug 3, 2024
Copy link
Member

@picnoir picnoir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think adding the whole /lib output to the ld path is a good idea. See https://github.com/numtide/nix-gl-host/blob/main/INTERNALS.md

I'll write a more detailed answer and spend a few extra brain cycles on this on Monday,.

@Atry
Copy link
Contributor Author

Atry commented Aug 3, 2024

nvidia-smi needs libnvidia-ml.so in $LD_LIBRARY_PATH. How to satisify it?

@wentasah
Copy link
Contributor

wentasah commented Aug 3, 2024

I would also like libnvidia-ml.so.1 to be loadable. My usecase is btop; if it can dlopen() this library, it displays nice GPU statistics.

If I understand the directory layout correctly, the lib subdirectory should contain dependencies of CUDA, GL and EGL libraries. On my system, no such library has libnvidia-ml.so.1 in the dynamic table as NEEDED, which suggests that lib might not be the right place for it. I think having the library in the cuda subdirectory would be better. At least btop is then happy and displays GPU statistics.

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

Successfully merging this pull request may close these issues.

3 participants