09-16-2019 01:55 AM - edited 09-16-2019 01:55 AM
I am using SDAccel 2018.3 (AWS F1 machine instances) on an Ubuntu 18.04 LTS to generate the awsxclbin and its corresponding executable. Everything works fine, however when I run the same awsxclbin + executable on a Centos 7 machine, of course it cannot find the required shared libraries (either due to different paths or not even installed).
The idea is to be able to "distribute" the awsxclbin + executable to other users so they can run it directly on their machines irrespective to their Linux environment.
Is there such an option on SDAccel to include all required shared libraries in a single executable?
09-17-2019 07:50 AM
SDAccel host compiler (xcpp) just use standard g++ to compile host code. Seems that there's no easy way to avoid libraries confliction when moving to another system.
You could use standard ways to resolve such issue, such as, using LD_LIBRARY_PATH to point to valid libraries. Or try to utilize --rpath to point specific directory that contains needed dynamic linking libraries. Or try to use docker to create needed system.