-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Missing CUDA .pc files #54395
Comments
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
It looks like these .pc files are only introduced by downstream packagers, like Arch (https://aur.archlinux.org/cgit/aur.git/tree/cuda.pc?h=cuda-11.1) and Debian (https://salsa.debian.org/nvidia-team/nvidia-cuda-toolkit/-/blob/master/debian/cuda.pc.in). If that's enough to consider them a de facto standard, we can certainly do the same. However, I'd also say that gstreamer should be more distro-agnostic here. Note that libcuda.so should be linked using the toolkit stub at compile-time, and rpath-patched using addOpenGLRunpath so it picks up the correct cuda driver from the running system. So I think the correct libdir for cuda.pc would be more like |
The new redist packages (everything under Didn't check the old run-file based cudatoolkit, feel free to re-open |
Issue description
On my Ubuntu with CUDA installed I have:
There seems to be no nixpkgs equivalent of those.
That apparently makes packaging support for CUDA-capabale applications hard, e.g. I cannot manage to add a flag to
gstreamer
'sgst-plugins-bad
because its Meson build system cannot find e.g.cuda-9.2.so
andcudart-9.2.so
in https://github.com/GStreamer/gst-plugins-bad/blob/f710b36ac4935bd6123df15a191c1fe089c4c233/sys/meson.build#L63-L84Possible solution
libcuda.so
is provided by the nvidia driver inlinuxPackages.nvidia_x11
libcudart.so
is provided bycudatoolkit.lib
see hereWe could generate
.pc
files ourselves, rough sketch:or e.g. for the case of
installPhase
incudatoolkit/default.nix
:with helper functions:
The text was updated successfully, but these errors were encountered: