Executable Usage - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
  • Work Directory(Step 1)

The steps for library download and environment setup can be found in l2_vitis_codec. For getting the design,

cd L2/demos/pikEnc
  • Build kernel(Step 2)

Run the following make command to build your XCLBIN and host binary targeting a specific device. Please be noticed that this process will take a long time, maybe couple of hours.

make run TARGET=hw PLATFORM=xilinx_u200_xdma_201830_2
  • Run kernel(Step 3)

To get the benchmark results, please run the following command.

./build_dir.hw.xilinx_u200_xdma_201830_2/host.exe --xclbin build_dir.hw.xilinx_u200_xdma_201830_2/lepEnc.xclbin PNGFilePath PIKFilePath --fast

PIK Encoder Input Arguments:

Usage: host.exe -[-xclbin]
       --xclbin:         the kernel name
       --fast:           the encoding mode
       PNGFilePath:      the path to the input *.PNG
       PIKFilePath:  the path to the output *.pik

Note: Default arguments are set in Makefile, you can use other pictures listed in the table.

  • Example output(Step 4)
Found Platform
Platform Name: Xilinx
INFO: Found Device=xilinx_u200_xdma_201830_2
INFO: Importing build_dir.hw.xilinx_u200_xdma_201830_2/pikEnc.xclbin
Loading: 'build_dir.hw.xilinx_u200_xdma_201830_2/pikEnc.xclbin'
INFO: Kernel has been created
INFO: Finish kernel setup
...

INFO: Finish kernel execution
INFO: Finish E2E execution
INFO: Data transfer from host to device: 100 us
INFO: Data transfer from device to host: 20 us
INFO: Average kernel execution per run: 600 ms