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

nvidiaPackages.production: libnvidia-pkcs11.so.$DRIVER_VERSION missing #392750

Open
3 tasks done
msanft opened this issue Mar 24, 2025 · 0 comments
Open
3 tasks done

nvidiaPackages.production: libnvidia-pkcs11.so.$DRIVER_VERSION missing #392750

msanft opened this issue Mar 24, 2025 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@msanft
Copy link
Contributor

msanft commented Mar 24, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

When running a container with pyTorch on version 2.6.0+cu124 with a H100 NVIDIA GPU on the currently-packaged production NVIDIA driver in nixpkgs, PyTorch tries to load the following library:

# excerpt from strace output
openat(AT_FDCWD, "$PATH/libnvidia-pkcs11.so.550.90.07", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

This file is missing as we delete it in the build of the production driver:

# Compatibility with openssl 1.1, unused
rm -f $i/lib/libnvidia-pkcs11.so*

While we should definitely not include OpenSSL 1.1 by default (e.g. for security reasons), we should still somehow address this incompatibility.

Steps to reproduce

This can be reproduced with the following command:

strace -f -e openat python3 -c 'import torch; torch.cuda.is_available()'

Expected behaviour

PyTorch should load correctly.

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

# uname -a
Linux workload-textgen-0 6.11.0-nvidia-gpu-confidential #1-NixOS SMP Sun Sep 15 14:57:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Not applicable otherwise, as the system does not include nix nor nix-* et al.

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@msanft msanft added the 0.kind: bug Something is broken label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant