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/resize
  • 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_u50_gen3x16_xdma_201920_3
  • Run kernel(Step 3)

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

./build_dir.hw.xilinx_u50_gen3x16_xdma_201920_3/host.exe -xclbin build_dir.hw.xilinx_u50_gen3x16_xdma_201920_3/kernel_resize.xclbin -i images/t0.raw -srcw 512 -srch 512 -dstw 256 -dsth 256

Renumber Input Arguments:

Usage: host.exe -[-xclbin -i -srcw -srch -dstw -dsth]
      -xclbin:           the kernel name
      -i:                the input bin file
      -srcw:             the source image width
      -srch:             the source image height
      -dstw:             the destination width
      -dsth:             the destination height

Note: Default arguments are set in Makefile, the data have only one column that the node’s community id is divided by other clustering algorithm, for example louvain.

  • Example output(Step 4)
Read image successfully.
Found Platform
Platform Name: Xilinx
Info: Context created
Info: Command queue created
Found Device=xilinx_u50_gen3x16_xdma_201920_3
INFO: Importing build_dir.sw_emu.xilinx_u50_gen3x16_xdma_201920_3/kernel_resize.xclbin
Loading: 'build_dir.sw_emu.xilinx_u50_gen3x16_xdma_201920_3/kernel_resize.xclbin'
Info: Program created
Info: Kernel created
kernel has been created
INFO: kernel start------
INFO: kernel end------
INFO: Execution time 6334.86ms
Info: Time in host-to-device: 14.9204ms
Info: Time in kernel: 6319.06ms
Info: Time in device-to-host: 0.475648ms
The src image size is 512*512.
The dst image size is 89*27.
Image resized successfully.
PASS: no error found.
Info: Test passed