UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer enshall_123
Observer
312 Views
Registered: ‎11-18-2018

ERROR: sdslint exited with non-zero code

Jump to solution

When I accelerate my function by HLS, SDx report a error as follows. There are no enough info for me to understand what happened... 

14:46:37 **** Incremental Build of configuration Release for project sec-sdx-proj ****
make pre-build main-build
sdsoc_make_clean Release

Building file: ../src/venus_demo.cpp
Invoking: SDS++ Compiler
sds++ -DHLS_NO_XIL_FPO_LIB -Wall -O3 -I"../src" -c -fmessage-length=0 -MT"src/venus_demo.o" -hls-target 1 -I/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/c++/6.2.1 -I/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/c++/6.2.1/aarch64-xilinx-linux -I/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/c++/6.2.1/backward -I/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include -I/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/glib-2.0 -I/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/lib/glib-2.0/include -I/home/zx/xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1 -I/home/zx/xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/aarch64-linux-gnu -I/home/zx/xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/backward -I/home/zx/xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include -I/home/zx/xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include-fixed -I/home/zx/xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -mstrict-align -hls-target 1 -MMD -MP -MF"src/venus_demo.d" -MT"src/venus_demo.o" -o "src/venus_demo.o" "../src/venus_demo.cpp" -sds-hw venus_demo venus_demo.cpp -clkid 2 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "/home/zx/zhangxiao/workspace/zcu102-rv-ss-2018-2/zcu102_rv_ss"
Processing -sds-hw block for venus_demo
Create data motion intermediate representation
/home/zx/xilinx/Vivado/2018.2/include/ap_int_special.h:99:1: warning: 'complex' defined as a struct template here but previously declared as a class template [-Wmismatched-tags]
struct complex<ap_int<_AP_W> > {
^
/home/zx/xilinx/Vivado/2018.2/include/ap_int_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
/home/zx/zhangxiao/workspace/sec-sdx-proj/src/venus_demo.cpp:779:59: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
output_ctrl_case1:for (int i=0; i<data_trans_times;i=i++) {
~ ^
/home/zx/zhangxiao/workspace/sec-sdx-proj/src/venus_demo.cpp:812:60: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
output_ctrl_case02:for (int i=0; i<data_trans_times;i=i++) {
~ ^
/home/zx/zhangxiao/workspace/sec-sdx-proj/src/venus_demo.cpp:839:59: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
output_ctrl_case3:for (int i=0; i<data_trans_times;i=i++) {
~ ^
Performing accelerator source linting for venus_demo
WARNING: [Linting 83-3003] Linting: "volatile" qualifier must be applied to a pointer or array type and have #pragma SDS data zero_copy! @ ../src/venus_demo.h:158:5
WARNING: [Linting 83-3003] Linting: "volatile" qualifier must be applied to a pointer or array type and have #pragma SDS data zero_copy! @ ../src/venus_demo.h:159:5
ERROR: [SdsCompiler 83-5111] sdslint exited with non-zero code processing /home/zx/zhangxiao/workspace/sec-sdx-proj/src/venus_demo.cpp for accelerator venus_demo
Please correct any compilation or sds++ compatibility issues.
sds++ log file saved as /home/zx/zhangxiao/workspace/sec-sdx-proj/Release/_sds/reports/sds_venus_demo.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [src/venus_demo.o] Error 1
src/subdir.mk:33: recipe for target 'src/venus_demo.o' failed

Thx for any help!!

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
173 Views
Registered: ‎08-20-2018

Re: ERROR: sdslint exited with non-zero code

Jump to solution

Hi @enshall_123

Is the function venus_demo_wrapper() accelerated?

Then use sds_alloc() for memory allocation 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
226 Views
Registered: ‎08-20-2018

Re: ERROR: sdslint exited with non-zero code

Jump to solution

Hi @enshall_123

Please have a look at below warnings,

WARNING: [Linting 83-3003] Linting: "volatile" qualifier must be applied to a pointer or array type and have #pragma SDS data zero_copy! @ ../src/venus_demo.h:158:5
WARNING: [Linting 83-3003] Linting: "volatile" qualifier must be applied to a pointer or array type and have #pragma SDS data zero_copy! @ ../src/venus_demo.h:159:5

Please correct them else you can share the code snippet, I can suggest the change.

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Observer enshall_123
Observer
202 Views
Registered: ‎11-18-2018

Re: ERROR: sdslint exited with non-zero code

Jump to solution

Hi @nutang

Thank you so much for your reply !

I try to correct these warning/error by wrapper the HLS files,  new errors happens:

ERROR: [CF2XD 83-2235] Hardware function 'venus_demo_wrapper' array argument 'bytestr_in_V' has 32832 elements, which exceeds the maximum supported BRAM depth of 16384.
ERROR: [CF2XD 83-2235] You can use '#pragma SDS data access_pattern(bytestr_in_V:SEQUENTIAL)' to map this argument to a FIFO interface.
ERROR: [CF2XD 83-2239] failed to create xd_adapter for accelerator comp venus_demo_wrapper_1
ERROR: [CF2XD 83-2009] An error has occurred during generation of the system block diagram. For more information, please look for additional ERROR messages in the console and in log files.

'bytestr_in_V'  was defined like this :

uint128_t *bytestr_in = (uint128_t*)calloc(525312/16, sizeof(uint128_t));
uint128_t   *stm_img = new uint128_t[208*208*16/16];
data_t         *src_img = new data_t[416*416*3];

 venus_demo_wrapper(bytestr_in, src_img, stm_img);

 

how I can alloc the space in ddr, or how to find the addr of ddr start. 

Thank you!!

0 Kudos
Xilinx Employee
Xilinx Employee
174 Views
Registered: ‎08-20-2018

Re: ERROR: sdslint exited with non-zero code

Jump to solution

Hi @enshall_123

Is the function venus_demo_wrapper() accelerated?

Then use sds_alloc() for memory allocation 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Observer enshall_123
Observer
163 Views
Registered: ‎11-18-2018

Re: ERROR: sdslint exited with non-zero code

Jump to solution

Dear 

0 Kudos
Xilinx Employee
Xilinx Employee
134 Views
Registered: ‎08-20-2018

Re: ERROR: sdslint exited with non-zero code

Jump to solution

Hi @enshall_123

After changing sds_alloc() , have you done below change too?

#pragma SDS data access_pattern(bytestr_in_V:SEQUENTIAL)

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