cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
87 Views
Registered: ‎07-10-2018

[v++ 60-626] Kernel link failed to complete

Dear all,

I'm trying to implement 2D-FFT 2D on ZCU102 board but I am experiencing issues on linking the hardware kernel (xclbin file).
I started from Vitis DSP library described in https://xilinx.github.io/Vitis_Libraries/dsp/2020.1/user_guide/L1_2dfft.html#.
Being it an L1 project, I modified it to get the .xclbin file to be used through OpenCL (I have been inspired by the guide https://xilinx.github.io/Vitis-Tutorials/2020-1/docs/my-first-program/README .html).

In detail, with Vitis 2020.1, I can compile both Host Program and FPGA binary (in SW EMU mode) by running commands (from the sw_emu folder:
$ g++ -I$XILINX_XRT/include/ -I$XILINX_VIVADO/include/ -Wall -O0 -g -std=c++11 ../src/host.cpp -o 'host' -L$XILINX_XRT/lib/ -lOpenCL -lpthread -lrt -lstdc++ -I../vitis_2dfft/fixed/

$ v++ -t sw_emu --config ../design.cfg -c -k top_fft2d -I'../src' -o 'top_fft2d.xilinx_zcu102.xo' '../src/top_2d_fft_test.cpp' -I../vitis_2dfft/fixed/

Con il comando
$ v++ -t sw_emu --config ../design.cfg -l -o 'top_fft2d.xilinx_zcu102.xclbin' top_fft2d.xilinx_zcu102.xo

Ottengo il seguente errore:

Option Map File Used: '/opt/xilinx/vitis/Vitis/2020.1/data/vitis/vpp/optMap.xml'

****** v++ v2020.1 (64-bit)
**** SW Build 2902540 on Wed May 27 19:54:35 MDT 2020
** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.

INFO: [v++ 60-1306] Additional information associated with this v++ link can be found at:
Reports: /opt/xilinx/tutorials/Vitis-Tutorials/docs/fft-elt-2/sw_emu/_x/reports/link
Log files: /opt/xilinx/tutorials/Vitis-Tutorials/docs/fft-elt-2/sw_emu/_x/logs/link
INFO: [v++ 60-1657] Initializing dispatch client.
Running Dispatch Server on port:42543
INFO: [v++ 60-1548] Creating build summary session with primary output /opt/xilinx/tutorials/Vitis-Tutorials/docs/fft-elt-2/sw_emu/top_fft2d.xilinx_zcu102.xclbin.link_summary, at Tue Nov 17 18:11:40 2020
INFO: [v++ 60-1316] Initiating connection to rulecheck server, at Tue Nov 17 18:11:40 2020
Running Rule Check Server on port:39785
INFO: [v++ 60-1315] Creating rulecheck session with output '/opt/xilinx/tutorials/Vitis-Tutorials/docs/fft-elt-2/sw_emu/_x/reports/link/v++_link_top_fft2d.xilinx_zcu102_guidance.html', at Tue Nov 17 18:11:42 2020
INFO: [v++ 60-895] Target platform: /opt/xilinx/vitis/platforms/xilinx_zcu102_base_202010_1/xilinx_zcu102_base_202010_1.xpfm
INFO: [v++ 60-1578] This platform contains Xilinx Shell Archive '/opt/xilinx/vitis/platforms/xilinx_zcu102_base_202010_1/hw/xilinx_zcu102_base_202010_1.xsa'
INFO: [v++ 60-629] Linking for software emulation target
INFO: [v++ 60-423] Target device: xilinx_zcu102_base_202010_1
INFO: [v++ 60-645] kernel flags are '-g -I /opt/xilinx/tutorials/Vitis-Tutorials/docs/fft-elt-2/src -I /opt/xilinx/tutorials/Vitis-Tutorials/docs/fft-elt-2/vitis_2dfft/fixed -g'
WARNING: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:83:backslash-newline at end of file
ERROR: [v++ 17-1309] Gcc: xcl_top.cpp:29:'SuperSampleContainer' does not name a type
ERROR: [v++ 17-1309] Gcc: xcl_top.cpp:30:'__xlnx_cl_struct_type_0' does not name a type
ERROR: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:73:'packetType' was not declared in this scope
ERROR: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:73:template argument 1 is invalid
ERROR: [v++ 17-1309] Gcc: xcl_top.cpp:30:'__xlnx_cl_struct_type_0' does not name a type
ERROR: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:80:'packetType' was not declared in this scope
ERROR: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:80:template argument 1 is invalid
ERROR: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:80:expected primary-expression before ')' token
ERROR: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:80:expected ')' before '_sPtr'
WARNING: [v++ 17-1309] Gcc: /opt/xilinx/vitis/Vitis/2020.1/bin/../data/emulation/include/xcl_top_defines.h:81:no return statement in function returning non-void [-Wreturn-type]
ERROR: [v++ 17-1309] Gcc: xcl_top.cpp:30:'__xlnx_cl_struct_type_0' does not name a type...

Has anyone been in such a situation?
Any suggestion is welcome!

 

Thanks and Regards,

Cristian

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
17 Views
Registered: ‎08-20-2018

Hi @cristian.cucchiella 

Vitis dsp lib is not supported for edge platforms i.e. Zynq/ZynqMP platforms.

dsp_lib.PNG

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos