cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
683 Views
Registered: ‎06-14-2018

SDx 2018.2.xdf, running in CLI, libxilinxopencl.so error or segfault

Jump to solution

Hi,

I have SW and HW emulation up and running in SDx 2018.2.xdf.

Now I'd like to run the simulation with the command line, so I cd to the folders, e.g.

$ cd ./workspace/project/Emulation-HW/
$ ./project.exe binary_container_1.xclbin argument
./project.exe: error while loading shared libraries: libxilinxopencl.so.2: cannot open shared object file: No such file or directory

So I tried:

$ source /opt/xilinx/xrt/setup.sh

 but it fails:

$ ./project.exe binary_container_1.xclbin argument
Segmentation fault (core dumped)

Any idea welcome.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
674 Views
Registered: ‎06-14-2018

Re: SDx 2018.2.xdf, running in CLI, libxilinxopencl.so error or segfault

Jump to solution

Okay, it's working now with this command :

$ XCL_EMULATION_MODE=hw_emu ./project.exe argument
Found Platform
Platform Name: Xilinx
etc.

Too bad I can't kudo myself :-) .

View solution in original post

2 Replies
Highlighted
Explorer
Explorer
681 Views
Registered: ‎06-14-2018

Re: SDx 2018.2.xdf, running in CLI, libxilinxopencl.so error or segfault

Jump to solution

I tried without specifying the xclbin, now I got:

$ ./project.exe argument
Linux:4.15.0-48-generic:#51~16.04.1-Ubuntu SMP Fri Apr 5 12:01:12 UTC 2019:x86_64
Distribution: Ubuntu 16.04.6 LTS
GLIBC: 2.23
--- 
XILINX_OPENCL=""
LD_LIBRARY_PATH="/opt/xilinx/xrt/lib:/home/me/Xilinx/SDx/2018.2.xdf/lib/lnx64.o/Ubuntu:/home/me/Xilinx/SDx/2018.2.xdf/lib/lnx64.o:/home/me/Xilinx/SDx/2018.2.xdf/runtime/lib/x86_64"
--- 
ERROR: No devices found
Error: Failed to find Xilinx platform

I'm simulating the Alveo 200.

0 Kudos
Highlighted
Explorer
Explorer
675 Views
Registered: ‎06-14-2018

Re: SDx 2018.2.xdf, running in CLI, libxilinxopencl.so error or segfault

Jump to solution

Okay, it's working now with this command :

$ XCL_EMULATION_MODE=hw_emu ./project.exe argument
Found Platform
Platform Name: Xilinx
etc.

Too bad I can't kudo myself :-) .

View solution in original post