spacemeshos / gpu-post

Spacemesh proof of space time gpu optimized setup
GNU General Public License v3.0
29 stars 9 forks source link

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

Open sudachen opened 3 years ago

sudachen commented 3 years ago

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.

AndrewAR2 commented 2 years ago

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

Primaveralina commented 2 years ago

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

avive commented 2 years ago

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 commented 2 years ago

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.