cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jorge20j
Visitor
Visitor
646 Views
Registered: ‎12-19-2019

Streaming_k2k_mm doesn't work for xilinx_u200_xdma_201830_2

Jump to solution

Hi everyone,

I've tried to run the example streaming_k2k_mm in sw_emu target and the problem is the following:

(base) jorga20j@peak6:~/Vitis_Accel_Examples/host/streaming_k2k_mm$ ./streaming_k2k_mm build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
CRITICAL WARNING: [HW-EM 08-0] Unable to find emconfig.json. Using default device "xilinx:pcie-hw-em:7v3:1.0"
XRT build version: 2.5.309
Build hash: 9a03790c11f066a5597b133db737cf4683ad84c8
Build date: 2020-02-23 18:52:05
Git branch: 2019.2_PU2
PID: 28664
UID: 1012
[Wed Nov 25 11:51:31 2020]
HOST: peak6
EXE: /home/jorga20j/Vitis_Accel_Examples/host/streaming_k2k_mm/streaming_k2k_mm
[XRT] WARNING: system singleton is not loaded
Found Platform
Platform Name: Xilinx
INFO: Reading build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
Loading: 'build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin'
Trying to program device[0]: xilinx:pcie-hw-em:7v3:1.0
Device[0]: program successful!
Vector Addition and Multiplication of elements 0x200000

I've cloned the repository in 2019.2 branch because I have the same version of vitis installed.

Any idea about this?

Thank in advance.

0 Kudos
1 Solution

Accepted Solutions
ViratAgarwal
Xilinx Employee
Xilinx Employee
543 Views
Registered: ‎06-24-2020

Hi @jorge20j ,

I see that one of the errors you faced was "ERROR: [v++ 60-1520] ***Exception: unrecognized option '-p'". However, the package command was only introduced from 2020.1 onwards. Are you trying to run the 2020.1 or master branch example with 2020.2.

Can you please clone the 2019.2 branch once and source 2019.2 VITIS and XRT. Please run the make check command instead of make all once. 

View solution in original post

0 Kudos
4 Replies
ViratAgarwal
Xilinx Employee
Xilinx Employee
572 Views
Registered: ‎06-24-2020

Hi  @jorge20j ,

I tried to reproduce the issue locally. I cloned the 2019.2 branch and source 2019.2_released VITIS and XRT. However, the example is passing for sw_emu when targeted for u200_xdma_201830_2. Following are the logs -

[virata@xhdrdevl224 streaming_k2k_mm]$ ./vadd_stream ./build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
CRITICAL WARNING: [HW-EM 08-0] Unable to find emconfig.json. Using default device "xilinx:pcie-hw-em:7v3:1.0"
Found Platform
Platform Name: Xilinx
INFO: Reading ./build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
Loading: './build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin'
Trying to program device[0]: xilinx:pcie-hw-em:7v3:1.0
Device[0]: program successful!
Vector Addition and Multiplication of elements 0x200000
TEST PASSED

Can you please provide more details.

0 Kudos
jorge20j
Visitor
Visitor
560 Views
Registered: ‎12-19-2019

Thank for answering,

I've followed this steps:

1. git clone <Vitis_Accel_Examples>

2. In folder /Vitis_Accel_Examples/host/streaming_k2k_mm/ to run the example make all TARGET=sw_emu DEVICE=xilinx_u200_xdma_201830_2 (my arch is x86_64) and this error appears:

INFO: [v++ 60-791] Total elapsed time: 0h 0m 12s
v++ -p ./build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.link.xclbin -t sw_emu --platform xilinx_u200_xdma_201830_2 --package.out_dir ./package.sw_emu -o ./build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
ERROR: [v++ 60-1520] ***Exception: unrecognised option '-p'

3. Then I've commented this lines in Makefile: 128  to 131 and 133. Running again the example...

4. The xclbin is generated and I've run the example as: ./stream ./streaming_k2k_mm build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin

but a new error appears:

(base) jorga20j@peak6:~/Vitis_Accel_Examples/host/streaming_k2k_mm$ ./streaming_k2k_mm build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
CRITICAL WARNING: [HW-EM 08-0] Unable to find emconfig.json. Using default device "xilinx:pcie-hw-em:7v3:1.0"
XRT build version: 2.5.309
Build hash: 9a03790c11f066a5597b133db737cf4683ad84c8
Build date: 2020-02-23 18:52:05
Git branch: 2019.2_PU2
PID: 12807
UID: 1012
[Thu Nov 26 09:23:46 2020]
HOST: peak6
EXE: /home/jorga20j/Vitis_Accel_Examples/host/streaming_k2k_mm/streaming_k2k_mm
[XRT] WARNING: system singleton is not loaded
Found Platform
Platform Name: Xilinx
INFO: Reading build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
Loading: 'build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin'
Trying to program device[0]: xilinx:pcie-hw-em:7v3:1.0
ERROR: S_AXI_CONTROL remap entry is absent in xmlbin
ERROR: S_AXI_CONTROL remap entry is absent in xmlbin
[XRT] ERROR: Failed to load xclbin.
Failed to program device[0] with xclbin file!
Failed to program any device found, exit!

 

5. Finally, adding the interfaces to kernels this problem is solved but the example doesn't finish as:

(base) jorga20j@peak6:~/Vitis_Accel_Examples/host/streaming_k2k_mm$ ./streaming_k2k_mm build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
CRITICAL WARNING: [HW-EM 08-0] Unable to find emconfig.json. Using default device "xilinx:pcie-hw-em:7v3:1.0"
XRT build version: 2.5.309
Build hash: 9a03790c11f066a5597b133db737cf4683ad84c8
Build date: 2020-02-23 18:52:05
Git branch: 2019.2_PU2
PID: 13339
UID: 1012
[Thu Nov 26 09:30:28 2020]
HOST: peak6
EXE: /home/jorga20j/Vitis_Accel_Examples/host/streaming_k2k_mm/streaming_k2k_mm
[XRT] WARNING: system singleton is not loaded
Found Platform
Platform Name: Xilinx
INFO: Reading build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin
Loading: 'build_dir.sw_emu.xilinx_u200_xdma_201830_2/krnl_stream_vadd_vmult.xclbin'
Trying to program device[0]: xilinx:pcie-hw-em:7v3:1.0
Device[0]: program successful!
Vector Addition and Multiplication of elements 0x200000

 

 

0 Kudos
ViratAgarwal
Xilinx Employee
Xilinx Employee
544 Views
Registered: ‎06-24-2020

Hi @jorge20j ,

I see that one of the errors you faced was "ERROR: [v++ 60-1520] ***Exception: unrecognized option '-p'". However, the package command was only introduced from 2020.1 onwards. Are you trying to run the 2020.1 or master branch example with 2020.2.

Can you please clone the 2019.2 branch once and source 2019.2 VITIS and XRT. Please run the make check command instead of make all once. 

View solution in original post

0 Kudos
jorge20j
Visitor
Visitor
538 Views
Registered: ‎12-19-2019

Hi @ViratAgarwal , the problem is solved. I was in a wrong branch. 

Thanks for the support.

0 Kudos