Executable Usage - 2023.1 English

Vitis Libraries

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

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

cd L2/benchmarks/triangle_count
  • 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_u250_xdma_201830_2
  • Run kernel(Step 3)

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

./build_dir.hw.xilinx_u250_xdma_201830_2/host.exe -xclbin build_dir.hw.xilinx_u250_xdma_201830_2/TC_kernel.xclbin -o data/csr_offsets.txt -i data/csr_columns.txt

Triangle Counting Input Arguments:

Usage: host.exe -[-xclbin -o -i]
       -xclbin   triangle count binary
       -o        offset file of input graph in CSR format
       -i        edge file of input graph in CSR format

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

  • Example output(Step 4)
---------------------Triangle Count-----------------
vertex 2,max_diff=4
Found Platform
Platform Name: Xilinx
Found Device=xilinx_u250_xdma_201830_2
INFO: Importing build_dir.hw.xilinx_u250_xdma_201830_2/TC_kernel.xclbin
Loading: 'build_dir.hw.xilinx_u250_xdma_201830_2/TC_kernel.xclbin'
kernel has been created
...

kernel start------

...
kernel end------
Execution time 69.292ms
Write DDR Execution time 62.7083 ms
Kernel Execution time 6.32296 ms
Read DDR Execution time 0.098528 ms
Total Execution time 69.1972 ms
INFO: case pass!