Executable Usage - 2024.2 English

Vitis Libraries

Release Date
2024-11-29
Version
2024.2 English
  • Work Directory (Step 1)

The steps for library download and environment setup can be found in the EADME file of the L2 folder. For getting the design:

cd L2/example/harris
  • Build Kernel (Step 2)

Run the following make command to build your XCLBIN and host binary targeting a specific device. Be aware that this process can take up to a couple of hours.

export OPENCV_INCLUDE=< path-to-opencv-include-folder >
export OPENCV_LIB=< path-to-opencv-lib-folder >
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:< path-to-opencv-lib-folder >
export PLATFORM=< path-to-platform-directory >/< platform >.xpfm
make host xclbin TARGET=hw
  • Run Kernel (Step 3)

To get the benchmark results, run the following command.

make run TARGET=hw
  • Example Output (Step 4)
-----------Harris Design---------------
INFO: Running OpenCL section.
Found Platform
Platform Name: Xilinx
XCLBIN File Name: krnl_harris
INFO: Importing Vitis_Libraries/vision/L2/examples/harris/Xilinx_Harris_L2_Test_vitis_hw_u200/build_dir.hw.xilinx_u200_xdma_201830_2/krnl_harris.xclbin
Loading: 'Vitis_Libraries/vision/L2/examples/harris/Xilinx_Harris_L2_Test_vitis_hw_u200/build_dir.hw.xilinx_u200_xdma_201830_2/krnl_harris.xclbin'
Kernel Created
Kernel Args set
Kernel called

Data copied from device to host
Execution done!
ocv corner count = 428, Hls corner count = 446
Commmon = 405         Success = 90.807175     Loss = 5.373832         Gain = 9.192825
Test Passed

------------------------------------------------------------