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

Symlink libcuda.so.1 to libcuda.so stubs? #27

Open
danpetry opened this issue Apr 26, 2024 · 6 comments
Open

Symlink libcuda.so.1 to libcuda.so stubs? #27

danpetry opened this issue Apr 26, 2024 · 6 comments
Labels
question Further information is requested

Comments

@danpetry
Copy link

Comment:

In the system /usr/lib folder we have e.g.

lrwxrwxrwx.   1 root root       12 Mar 14 17:25 libcuda.so -> libcuda.so.1
lrwxrwxrwx.   1 root root       20 Mar 14 17:25 libcuda.so.1 -> libcuda.so.550.54.14
-rwxr-xr-x.   1 root root 24330976 Mar 14 17:25 libcuda.so.550.54.14

meaning that an application can access the real so through those three different points.
It seems unlikely that an application will use libcuda.so.550.54.14, but we've found one (llama.cpp) which looks for libcuda.so.1 (while building against cuda 12.3) so we had to create the symlink as part of that feedstock. Should it be here?

@danpetry danpetry added the question Further information is requested label Apr 26, 2024
@jakirkham
Copy link
Member

Can you please share the build?

@danpetry
Copy link
Author

It's here

But I've just been informed of cuda-compat, is that what the purpose of that is?

@kmittman
Copy link

This allows using an older NVIDIA driver with a newer CUDA Toolkit, with several caveats.
More information about "Forward Compatibility" https://docs.nvidia.com/deploy/cuda-compatibility/#forward-compatibility-title

@danpetry
Copy link
Author

Ah ok. This isn't the use case I've got, though. So should the libcuda.so.1 to libcuda.so symlink be moved to this feedstock? (opposite way around to the symlinks in the system installation, but seems to make sense for this purpose).

@isuruf
Copy link
Member

isuruf commented Apr 29, 2024

Is libcuda.so.1 needed for linking or loading?

@danpetry
Copy link
Author

linking (compilation fails without the symlink in the host environment during build)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
4 participants