Skip to content

Commit

Permalink
depend: prevent collection of libcuda.so* and libcudadebugger.so*
Browse files Browse the repository at this point in the history
`libcuda.so`, `libcuda.so.1`, and `libcuda.so.{version}` are
run-time part of NVIDIA driver; therefore, they should not be
collected, as they need to match the rest of driver components on
the target system.

Same goes for `libcudadebugger.so*`.
  • Loading branch information
rokm committed Feb 3, 2024
1 parent e5489cd commit 503c33d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PyInstaller/depend/dylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@
r'libnvidia-egl-(gbm|wayland)\.so(\..*)?',
r'libnvidia-(cfg|compiler|e?glcore|glsi|glvkspirv|rtcore|allocator|tls|ml)\.so(\..*)?',
r'lib(EGL|GLX)_nvidia\.so(\..*)?',
# libcuda.so, libcuda.so.1, and libcuda.so.{version} are run-time part of NVIDIA driver, and should not be
# collected, as they need to match the rest of driver components on the target system.
r'libcuda\.so(\..*)?',
r'libcudadebugger\.so(\..*)?',
# libxcb-dri changes ABI frequently (e.g.: between Ubuntu LTS releases) and is usually installed as dependency of
# the graphics stack anyway. No need to bundle it.
r'libxcb\.so(\..*)?',
Expand Down
4 changes: 4 additions & 0 deletions news/8278.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(Linux) Prevent collection of ``libcuda.so.1``, which is part of NVIDIA
driver and must match the rest of the driver's components. Collecting
a copy might lead to issues when build and target system use different
versions of NVIDIA driver.

0 comments on commit 503c33d

Please sign in to comment.