- Work Directory (Step 1)
The steps for library download and environment setup can be found in the README file of the L3 folder. For getting the design:
cd L3/example/colordetect
- 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)
-----------Color Detect Design--------------- INFO: Running OpenCL section. Found Platform Platform Name: Xilinx INFO: Device found - xilinx_u200_xdma_201830_2 XCLBIN File Name: krnl_colordetect INFO: Importing Vitis_Libraries/vision/L3/examples/colordetect/Xilinx_Colordetect_L3_Test_vitis_hw_u200/build_dir.hw.xilinx_u200_xdma_201830_2/krnl_colordetect.xclbin Loading: 'Vitis_Libraries/vision/L3/examples/colordetect/Xilinx_Colordetect_L3_Test_vitis_hw_u200/build_dir.hw.xilinx_u200_xdma_201830_2/krnl_colordetect.xclbin' INFO: Verification results: Percentage of pixels above error threshold = 0 ------------------------------------------------------------