Executable Usage - 2023.2 English

Vitis Libraries

Release Date
2023.2 English
  • Work Directory(Step 1)

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

cd L2/demos/text/log_analyzer
  • 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/test.exe -xclbin ./build_dir.hw.xilinx_u200_xdma_201830_2/logAnalyzer.xclbin -log ./data/access.log -dat ./data/geo.dat -ref ./data/golden.json

Log Analyzer Input Arguments:

Usage: test.exe -xclbin <xclbin_name> -log <input log> -data <input geo path> -ref <golden data>
       -xclbin:     the kernel name
       -log   :     input log
       -data  :     input geo path
       -ref   :     golden data
  • Example output(Step 4)
----------------------log analyzer----------------
DEBUG: found device 0: xilinx_u200_xdma_201830_2
INFO: initilized context.
INFO: initilized command queue.
INFO: created program with binary build_dir.hw.xilinx_u200_xdma_201830_2/logAnalyzer.xclbin
INFO: built program.
load log from disk to in-memory buffer
load geoip database disk to in-memory buffer
execute log analyzer
netsLow21 actual use buffer size is 333
required geo buffer size 1454733
The log file is partition into 1 slice with max_slice_lnm 102 and  takes 0.006000 ms.
DEBUG: reEngineKernel has 4 CU(s)
DEBUG: GeoIP_kernel has 1 CU(s)
DEBUG: WJ_kernel has 1 CU(s)
logAnalyzer pipelined, time: 5.401 ms, size: 0 MB, throughput: 0 GB/s
-----------------------------Finished logAnalyzer pipelined test----------------------------------------------