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
Adventurer
Adventurer
1,648 Views
Registered: ‎07-25-2018

SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

I am using Xilinx SDACCEL example design for the VADD rtl kernel. I have the xclbin/vwap.hw.xilinx_vcu1525_dynamic_5_0.xclbin created and then executing the below command for HW emulation.

./host xclbin/vadd.hw.xilinx_vcu1525_dynamic_5_0.xclbin

But the TEST is FAILING and I get the following errors after running the above command.

Below is the log in bold. Is my command correct or does the vu1525 expects more arguments. Thanks and appreciate your help.

 

Data Size Total Bytes =4096
Found Platform
Platform Name: Xilinx
XCLBIN File Name: vwap
INFO: Importing xclbin/vwap.hw.xilinx_vcu1525_dynamic_5_0.xclbin
Loading: 'xclbin/vwap.hw.xilinx_vcu1525_dynamic_5_0.xclbin'
ERROR: Invalid global_argument size for kernel arg
ERROR: clSetKernelArg() for kernel "vwap_sdx_kernel", argument index 0.

ERROR: Invalid global_argument size for kernel arg
ERROR: clSetKernelArg() for kernel "vwap_sdx_kernel", argument index 1.

ERROR: Invalid scalar argument size, expected 4 got 8
ERROR: clSetKernelArg() for kernel "vwap_sdx_kernel", argument index 3.

ERROR: bad kernel argument index 4
ERROR: bad kernel argument index 5
ERROR: bad kernel argument index 6
ERROR: bad kernel argument index 7
ERROR: bad kernel argument index 8
ERROR: Kernel arg 'a' is not set
ERROR: buffer (5) is not resident in device (0)
Error: Result mismatch  i = 2 Software result = 1 Device result = 0
Error: Result mismatch  i = 3 Software result = 2 Device result = 0
Error: Result mismatch  i = 4 Software result = 2 Device result = 0
Error: Result mismatch  i = 5 Software result = 3 Device result = 0

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
1,632 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

It looks there's something wrong with setting your custom RTL kernel arguments.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

11 Replies
Xilinx Employee
Xilinx Employee
1,617 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

It looks you didn't use the makefile flow.

https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/rtl_kernel/rtl_vadd

 

You may want to follow the steps in "Alternative Execution Flow for Example Applications in Emulation" section for hw emulation.

export LD_LIBRARY_PATH=$XILINX_SDX/runtime/lib/x86_64/:$LD_LIBRARY_PATH
export XCL_EMULATION_MODE=hw_emu
emconfigutil --platform 'xilinx:vcu1525:dynamic' --nd 1

Once the environment has been configured, the application can be executed by

./host

 Note the above github link is applicable to SDx 2018.2.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
1,595 Views
Registered: ‎07-25-2018

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

After executing ./host I get the following error

ERROR: device::load_binary binary target=Bin , no Hw HAL handle

ERROR: No program executable for device.

 

FYI I used the following make command to build the kernel

make TARGET=hw DEVICES=xilinx_vcu1525_dynamic_5_1 all

 

Aftre this I do below steps

export LD_LIBRARY_PATH=$XILINX_SDX/runtime/lib/x86_64/:$LD_LIBRARY_PATH
export XCL_EMULATION_MODE=hw_emu
emconfigutil --platform 'xilinx:vcu1525:dynamic' --nd 1

./host

And get the above error message. Thanks and appreciate your help.

0 Kudos
Xilinx Employee
Xilinx Employee
1,566 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

In the make command, you need to change TARGET from hw to hw_emu.

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
1,549 Views
Registered: ‎07-25-2018

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

I changed it to hw_emu and performed the below steps & still see the same error.

1. make TARGET=hw_emu DEVICES=xilinx_vcu1525_dynamic_5_0 all

2. export LD_LIBRARY_PATH=$XILINX_SDX/runtime/lib/x86_64/:$LD_LIBRARY_PATH

3. export XCL_EMULATION_MODE=hw_emu
4. emconfigutil --platform 'xilinx:vcu1525:dynamic' --nd 1
5./host

 

Below is the log

Found Platform
Platform Name: Xilinx
XCLBIN File Name: vadd
INFO: Importing xclbin/vadd.hw_emu.xilinx_vcu1525_dynamic_5_0.xclbin
Loading: 'xclbin/vadd.hw_emu.xilinx_vcu1525_dynamic_5_0.xclbin'
ERROR: device::load_binary binary target=Bin, no Hw HAL handle
ERROR: No program executable for device
Segmentation fault (core dumped)

 

Thanks and appreciate your help.

 

0 Kudos
Xilinx Employee
Xilinx Employee
1,537 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

I gave it a try at my end by running the following command sequentially, i.e. compile and execute the application in hardware emulation mode.

make TARGETS=hw_emu DEVICES=xilinx:vcu1525:dynamic all

make TARGETS=hw_emu DEVICES=xilinx:vcu1525:dynamic check

 

I received "TEST PASSED" result.

 

Please change your device as suggested in the github table.

Here's the list of supported DSAs in SDx 2018.2.

xocc --list xdevices
xilinx_kcu1500_dynamic_5_0
xilinx_vcu1525_dynamic_5_1
xilinx_vcu1525_dynamic_5_2

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
1,532 Views
Registered: ‎07-25-2018

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

I tried running the following command, but get the error message

make TARGETS=hw_emu DEVICES=xilinx:vcu1525:dynamic all

 

Error message is below

INFO: [XOCC 60-423]   Target device: xilinx_vcu1525_dynamic_5_0
ERROR: [XOCC 60-926] The specified platform does not support Hardware Emulation (Emulation BD and/or HPFM are missing).
ERROR: [XOCC 60-626] Kernel link failed to complete
ERROR: [XOCC 60-703] Failed to finish linking
../../../utility/rules.mk:128: recipe for target 'xclbin/vadd.hw_emu.xilinx_vcu1525_dynamic.xclbin' failed
make: *** [xclbin/vadd.hw_emu.xilinx_vcu1525_dynamic.xclbin] Error 1

 

You suggested to change my device name. How do I do that?

0 Kudos
Xilinx Employee
Xilinx Employee
1,523 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

It looks the targetting device is not compatible with 2018.2.

INFO: [XOCC 60-423]   Target device: xilinx_vcu1525_dynamic_5_0

 

 

In my case, xilinx_vcu1525_dynamic_5_2 is targetted (by running the same make command as you).

 

Are you using 2018.2? Did you download all the files from the most up-to-date repository?

https://github.com/Xilinx/SDAccel_Examples

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Adventurer
Adventurer
1,519 Views
Registered: ‎07-25-2018

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

Thanks for the response. yes I am using 2018.2, does 2017.4 support xilinx_vcu1525_dynamic_5_0?

I also downloadd the latest repo from git last week

0 Kudos
Xilinx Employee
Xilinx Employee
1,506 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

Yes, xilinx_vcu1525_dynamic_5_0 is supported in 2017.4.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
1,256 Views
Registered: ‎07-25-2018

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

Thanks . I used the below 2 commands and now I get the TEST PASSED message

make TARGET=hw_emu DEVICES=xilinx_vcu1525_dynamic_5_0 all

make TARGET=hw_emu DEVICES=xilinx_vcu1525_dynamic_5_0 check

 

Now I have my own RTL kernel and used the above 2 commands to compile it and run but get the below meesage.

INFO: Importing xclbin/vwap.hw.xilinx_vcu1525_dynamic_5_0.xclbin
Loading: 'xclbin/vwap.hw.xilinx_vcu1525_dynamic_5_0.xclbin'
ERROR: Invalid global_argument size for kernel arg
ERROR: clSetKernelArg() for kernel "vwap_sdx_kernel", argument index 0.

ERROR: Invalid global_argument size for kernel arg
ERROR: clSetKernelArg() for kernel "vwap_sdx_kernel", argument index 1.

ERROR: Invalid scalar argument size, expected 4 got 8
ERROR: clSetKernelArg() for kernel "vwap_sdx_kernel", argument index 3.

ERROR: bad kernel argument index 4
ERROR: bad kernel argument index 5
ERROR: bad kernel argument index 6
ERROR: bad kernel argument index 7
ERROR: bad kernel argument index 8
ERROR: Kernel arg 'a' is not set
ERROR: buffer (5) is not resident in device (0)
Error: Result mismatch  i = 2 Software result = 1 Device result = 0
Error: Result mismatch  i = 3 Software result = 2 Device result = 0
Error: Result mismatch  i = 4 Software result = 2 Device result = 0

 

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
1,633 Views
Registered: ‎07-16-2008

回复: SDACCEL rtl VADD kernel test failing on VCU1525

Jump to solution

It looks there's something wrong with setting your custom RTL kernel arguments.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post