Executable Usage - 2024.1 English

Vitis Libraries

Release Date
2024-08-06
Version
2024.1 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 the Kernel (Step 2)

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

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

To get the benchmark results, 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
geoIPConvert
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----------------------------------------------