cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
696 Views
Registered: ‎03-27-2018

SDAccel example critical_path_ocl problem on kcu1500 board

I had installed the kcu1500 and run the examples vadd and vdotprod successfully, but when I tried another example critical_path_ocl, I got a problem, the information is shown below:

 

gg@gg-OptiPlex-9010:~/xilinx/SDx/2017.4/SDAccel_Examples-2017.4/getting_started/clk_freq/critical_path_ocl$ make TARGETS=sw_emu all
/home/gg/xilinx/SDx/2017.4/bin/xcpp -Wall -O0 -g -std=c++14 -I./src/ -std=c++0x -I./src/ -I../../..//libs/xcl2 -I/home/gg/xilinx/SDx/2017.4/runtime/include/1_2 -I../../..//libs/bitmap ./src/host.cpp ../../..//libs/xcl2/xcl2.cpp ../../..//libs/bitmap/bitmap.cpp -o host -L/home/gg/xilinx/SDx/2017.4/runtime/lib/x86_64 -L/home/gg/xilinx/SDx/2017.4/lib/lnx64.o -lOpenCL -pthread
mkdir -p xclbin
/home/gg/xilinx/SDx/2017.4/bin/xocc -c --xp "param:compiler.preserveHlsOutput=1" --xp "param:compiler.generateExtraRunData=true" -s -DBAD_DESIGN=0  -o xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xo -t sw_emu --platform xilinx:kcu1500:dynamic ./src/apply_watermark.cl

****** xocc v2017.4 (64-bit)
  **** SW Build 2086221 on Fri Dec 15 20:54:30 MST 2017
    ** Copyright 1986-2017 Xilinx, Inc. All Rights Reserved.

Attempting to get a license: ap_opencl
Feature available: ap_opencl
INFO: [XOCC 60-585] Compiling for software emulation target
INFO: [XOCC 60-895]    Target platform: /home/gg/xilinx/SDx/2017.4/platforms/xilinx_kcu1500_dynamic_5_0/xilinx_kcu1500_dynamic_5_0.xpfm
INFO: [XOCC 60-423]   Target device: xilinx_kcu1500_dynamic_5_0
INFO: [XOCC 60-242] Creating kernel: 'apply_watermark'
INFO: [XOCC 60-594] Finished kernel compilation
INFO: [XOCC 60-586] Created xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xo
INFO: [XOCC 60-791] Total elapsed time: 0h 0m 7s
mkdir -p xclbin
/home/gg/xilinx/SDx/2017.4/bin/xocc -l --xp "param:compiler.preserveHlsOutput=1" --xp "param:compiler.generateExtraRunData=true" -s   -o xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xclbin -t sw_emu --platform xilinx:kcu1500:dynamic xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xo

****** xocc v2017.4 (64-bit)
  **** SW Build 2086221 on Fri Dec 15 20:54:30 MST 2017
    ** Copyright 1986-2017 Xilinx, Inc. All Rights Reserved.

INFO: [XOCC 60-629] Linking for software emulation target
INFO: [XOCC 60-895]    Target platform: /home/gg/xilinx/SDx/2017.4/platforms/xilinx_kcu1500_dynamic_5_0/xilinx_kcu1500_dynamic_5_0.xpfm
INFO: [XOCC 60-423]   Target device: xilinx_kcu1500_dynamic_5_0
INFO: [XOCC 60-586] Created xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xclbin
INFO: [XOCC 60-791] Total elapsed time: 0h 0m 8s
gg@gg-OptiPlex-9010:~/xilinx/SDx/2017.4/SDAccel_Examples-2017.4/getting_started/clk_freq/critical_path_ocl$ make TARGETS=sw_emu check
/home/gg/xilinx/SDx/2017.4/bin/emconfigutil --platform xilinx:kcu1500:dynamic --nd 1

****** configutil v2017.4 (64-bit)
  **** SW Build 2086221 on Fri Dec 15 20:54:30 MST 2017
    ** Copyright 1986-2017 Xilinx, Inc. All Rights Reserved.

INFO: [ConfigUtil 60-895]    Target platform: /home/gg/xilinx/SDx/2017.4/platforms/xilinx_kcu1500_dynamic_5_0/xilinx_kcu1500_dynamic_5_0.xpfm
emulation configuration file `emconfig.json` is created in current working directory
XCL_EMULATION_MODE=sw_emu ./host apply_watermark_GOOD ./data/input.bmp ./data/golden.bmp
Found Platform
Platform Name: Xilinx
XCLBIN File Name: apply_watermark_GOOD
INFO: Importing xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xclbin
Loading: 'xclbin/apply_watermark_GOOD.sw_emu.xilinx_kcu1500_dynamic.xclbin'
CPU emulation compute unit exited unexpectedly
make: *** wait: No child processes.  Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes.  Stop.

 

Any suggestions? Thank you very much!

 

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
619 Views
Registered: ‎11-04-2010

Re: SDAccel example critical_path_ocl problem on kcu1500 board

I don't see the issue with the Example_design from Github in 2017.4.

Please confirm your environment is set properly or try to run 2018.2's example design in 2018.2.

 

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Highlighted
Observer
Observer
606 Views
Registered: ‎03-27-2018

Re: SDAccel example critical_path_ocl problem on kcu1500 board

I tried 2018.2's example but it did not work either. I think the environment setting which you mentioned may be a problem, how can I confirm it is set properly? Thank you very much!

0 Kudos