Skip to content

When running in a snap environment, let the dynamic linker resolve libs - #375

Merged
ngdxzy merged 1 commit into
ROCm:mainfrom
kenvandine:snap_env
Feb 28, 2026
Merged

When running in a snap environment, let the dynamic linker resolve libs#375
ngdxzy merged 1 commit into
ROCm:mainfrom
kenvandine:snap_env

Conversation

@kenvandine

Copy link
Copy Markdown
Contributor

When running inside a snap, LD_LIBRARY_PATH already points at the bundled XRT libs (e.g. $SNAP/usr/lib/x86_64-linux-gnu). Passing a bare library name lets the dynamic linker resolve it via LD_LIBRARY_PATH, which avoids hard-coding the arch triplet. Outside of a snap the libs are expected to live next to the binary.

When running inside a snap, LD_LIBRARY_PATH already points at the bundled XRT
libs (e.g. $SNAP/usr/lib/x86_64-linux-gnu).  Passing a bare library name lets
the dynamic linker resolve it via LD_LIBRARY_PATH, which avoids hard-coding
the arch triplet. Outside of a snap the libs are expected to live next to
the binary.
@ngdxzy
ngdxzy merged commit b3992c1 into ROCm:main Feb 28, 2026
4 checks passed
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.

2 participants