cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
869 Views
Registered: ‎09-12-2018

SDAccel Examples run error on KCU1500 board

Hello, 

     I have built up a SDAccel environment(2018.2 Version)  successfully. Also I can run some SDAccel examples with "TEST PASS". However, sometimes the following errors will occur during system run step, while both software and hardware emulation are OK. 

    The error log is shown as below when we test the multiple devices project in SDAccel_Examples/getting_started/host/multiple_devices_ocl. Another problem is that we only have 2 KCU1500 borad actually,but the result of device querying by OpenCL runtime is 4, which is different from that return result of command 'xbsak query'. These confuses me a lot.

    

Regards,


xwei@deasy:/data/xwei/sdaccel/multiple_devices_ocl$ make check TARGET=hw
./vadd ./xclbin/vector_addition.hw.xilinx_kcu1500_dynamic_5_0.xclbin
Found Platform
Platform Name: Xilinx
Found 4 devices
Initializing OpenCL objects
Creating Context[0]...
INFO: Importing ./xclbin/vector_addition.hw.xilinx_kcu1500_dynamic_5_0.xclbin
Loading: './xclbin/vector_addition.hw.xilinx_kcu1500_dynamic_5_0.xclbin'

ERROR: Failed to load xclbin
src/host.cpp:163 Error calling cl::Program program(context, devices, bins, NULL, &err), error code is: -44
Makefile:95: recipe for target 'check' failed
make: *** [check] Error 1

 


xwei@deasy:/data/xwei/sdaccel/multiple_devices_ocl$ xbsak query
INFO: Found 2 device(s)
DSA name: xilinx_kcu1500_dynamic_5_0
Vendor: 10ee
Device: 4b87
SDevice: 4350
SVendor: 10ee
DDR size: 0x1000000 KB
DDR count: 4
OnChip Temp: -25047 C
Power(Beta): **Unable to estimate power**
OCL Frequency:
0: 29 MHz
1: 29 MHz
PCIe: GEN15 x 63
DMA bi-directional threads: 2
MIG Calibrated: true

Total DMA Transfer Metrics:
Chan[0].h2c: 0x0 KB
Chan[0].c2h: 0x0 KB
Chan[1].h2c: 0x0 KB
Chan[1].c2h: 0x0 KB

Firewall Last Error Status:
0: 0xfffefffe (RECS_ARREADY_MAX_WAIT|RECS_CONTINUOUS_RTRANSFERS_MAX_WAIT|ERRS_RDATA_NUM|ERRS_RID|RECS_AWREADY_MAX_WAIT|RECS_WREADY_MAX_WAIT|RECS_WRITE_TO_BVALID_MAX_WAIT|ERRS_BRESP). Error occurred on Wed 2019-01-09 09:57:56 CST
1: 0x0 (GOOD)
2: 0x0 (GOOD)

Xclbin ID: 0x0

Mem Topology:
-- none found --. See 'xbsak program'.

Compute Unit Status:
-- none found --. See 'xbsak program'.

Device Memory Usage:
Bank[0].mem: 0x0 KB
Bank[0].bo: 0
Bank[1].mem: 0x0 KB
Bank[1].bo: 0
Bank[2].mem: 0x0 KB
Bank[2].bo: 0
Bank[3].mem: 0x0 KB
Bank[3].bo: 0

0 Kudos
3 Replies
Highlighted
Moderator
Moderator
807 Views
Registered: ‎11-04-2010

Pleaes check whether the Environment variable CL_EMULATION_MODE is set.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Visitor
Visitor
790 Views
Registered: ‎09-12-2018

Hi hongh,

    @hongh Thanks your reply. I'm sure that Environment variable CL_EMULATION_MODE is set during software and hardware emulation. But I don't think that CL_EMULATION_MODE would also be set during real hardware execution. 

     Makefile in SDAccel Example is shown as below.

捕获.PNG

0 Kudos
Highlighted
Moderator
Moderator
715 Views
Registered: ‎07-16-2008

I see you specified ./vadd as the executable.

./vadd ./xclbin/vector_addition.hw.xilinx_kcu1500_dynamic_5_0.xclbin

However for the multiple devices example, this variable is set to multiple_devices in Makefile.
EXECUTABLE = multiple_devices

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