Xilinx / Vitis_Libraries

Vitis Libraries
https://docs.xilinx.com/r/en-US/Vitis_Libraries
Apache License 2.0
897 stars 357 forks source link

Vitis Vision Library 2021.2- colorcorrectionmatrix not working #113

Open kapoor7997 opened 2 years ago

kapoor7997 commented 2 years ago

Hi vt-lib-support,

Linking it to this issue(https://github.com/Xilinx/Vitis_Libraries/issues/80) as the 2020.2 is also failing.

I have been working on getting the Vitis Vision Library 2021.2 working to show a demo to our clients(OUR COMPANY's WHOLE FUNDING IS BASED ON THIS WORKING).

My setup: Board: ZCU102 Vivado: 2021.2 Vitis: 2021.2 Petalinux: 2021.2

Step I did:

  1. I cloned the Master branch on Vitis_Libraries(https://github.com/Xilinx/Vitis_Libraries)
  2. I followed the Vision README
  3. I DONT have an ALveo card. I want to build for Embedded Platform(ZCU102)
  4. Downloaded ZCU102 Base 2021.2 base image and ZYNQMP common image for 2021.1 from here(https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-platforms.html)
  5. I created a sysroot from the ZYNQMP common image for 2021.1
  6. I want to build for ZCU102 so was working with L2/examples/colorcorrection/matrix and followed this README(https://github.com/Xilinx/Vitis_Libraries/blob/master/vision/L2/README.md)
  7. I used following commands for compiling

root@zynqmp-common-2021_2:/media/sd-mmcblk0p1# export XCL_BINDIR=/mnt/sd-mmcblk0p1/ root@zynqmp-common-2021_2:/media/sd-mmcblk0p1# root@zynqmp-common-2021_2:/media/sd-mmcblk0p1# root@zynqmp-common-2021_2:/media/sd-mmcblk0p1# sh run_script.sh INFO: Running OpenCL section. Found Platform Platform Name: Xilinx INFO: Device found - edge XCLBIN File Name: krnl_ccm INFO: Importing ./krnl_ccm.xclbin Loading: './krnl_ccm.xclbin'

  1. It goes up to the point of Loading the xclbin kernel and then hangs up.

I have been working on vitis vision libraries for a while just trying to get them working and I had a errors in the 2020.2 environment (https://github.com/Xilinx/Vitis_Libraries/issues/80 )and after I confirmed that Xilinx's own common image and base embedded platform of 2020.2 is failing to run successfully I have not received any comment from Xilinx after that.

Now I have confirmed that Xilinx's 2021.2 vitis libraries are also hanging.

I need help with this as OUR FUNDING IS 100% DEPENDENT ON THIS DEMO. 4_finalHangingError 3_2021petalinuxNowShowing 2_noOpencvLibraries 1_libvideoioError

Thanks, Kapoor7997

kapoor7997 commented 2 years ago

I saw that there was an error but the sd_card folder still got created. We already know from my previous comment that it didnt have system.dtb in the sd_card folder.

Please look at the file, ConsoleHostSide_LD_ibrary.txt

Console had this error: "LD_LIBRARY_PATH=:/home/dev64/Downloads/ThisPc_petali/visionlibrary2021.2_project/xilinx-zynqmp-common-v2021.2/sysroots/cortexa72-cortexa53-xilinx-linux//usr/lib :/lib /bin/sh: :/lib: No such file or directory"

NOW: Attached is the console output of the board. Filename is: boarSide_run_Script_dmesg_intterrupts.txt Look for following tags in the file: D-MESSEGE ZOCL_Intterrupts1 ZOCL_Intterrupts2 run_Scipt_Hangs

Looks like zocl interrupt is never coming.

boarSide_run_Script_dmesg_intterrupts.txt ConsoleHostSide_LD_ibrary.txt

vt-lib-support commented 2 years ago

Hi @kapoor7997 ,

In the environment setup, the SYSROOT should point to aarch64-xilinx-linux instead of cortexa72.....
However, this looks like some issue with the hardware setup and not with the library code. (Please run software emulation and hardware emulation to confirm on your end too)

We suggest you to create a ticket in the forum where you can get the technical assistance to debug your stall issue on the board. This page has the info on the process.