Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

gpu-setup-test does not use libgpu-setup.so from the same folder by default #55

Open
sudachen opened this issue Jul 12, 2021 · 4 comments
Assignees

Comments

@sudachen
Copy link

Since gpu-setup-test is linked without rpath hints it does not use executable's folder to find shared libaries. To fix this it's enough to add -Wl,rpath,\$ORIGIN in link flags for linux/OSX targets.

@lrettig lrettig changed the title gpu-steup-test does not use libgpu-setup.so from the same floder by default gpu-steup-test does not use libgpu-setup.so from the same folder by default Aug 8, 2021
@lrettig lrettig changed the title gpu-steup-test does not use libgpu-setup.so from the same folder by default gpu-setup-test does not use libgpu-setup.so from the same folder by default Aug 8, 2021
@AndrewAR2
Copy link
Contributor

Please could you describe a test case for linux for this, because in CI I don't see such a problem.

@Primaveralina
Copy link

hi @avive! could you please respond to @AndrewAR2's question above? is this issue still topical?

@avive
Copy link
Contributor

avive commented Nov 22, 2021

The case is to try to launch the testapp from a release. If you don't add its path to LD_LIBRARY_PATH env var. e.g. via export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH then the app won't find the lib which is in the same directory. For more info see the instructions we currently give to users: https://product.spacemesh.io/#/join_devnet

@AndrewAR2
Copy link
Contributor

Please include the version and Linux distribution you are using so that I can reproduce the problem. This issue does not reproduce on CI, macOS, Debian 10, or Ubuntu 20.04.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants