- 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/pagerank
- 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_pagerank_0.xclbin -dataSetDir data/ -refDir data/
Pagerank Input Arguments:
Usage: host.exe -[-xclbin -dataSetDir -refDir] -xclbin: the kernel name -dataSetDir: the path point to input directory -refDir: the path point to reference directory
Note: Default arguments are set in Makefile, you can use other Datasets listed in the table.
- Example output(Step 4)
Found Platform Platform Name: Xilinx INFO: Found Device=xilinx_u50_gen3x16_xdma_201920_3 INFO: Importing build_dir.hw.xilinx_u50_gen3x16_xdma_201920_3/kernel_pagerank_0.xclbin Loading: 'build_dir.hw.xilinx_u50_gen3x16_xdma_201920_3/kernel_pagerank_0.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: 240 us INFO: Data transfer from device to host: 106 us INFO: Average kernel execution per run: 5763 us INFO: Average execution per run: 6109 us ... INFO: sum_golden = 4.30706 INFO: sum_pagerank = 4.30706 INFO: Accurate Rate = 1 INFO: Err Geomean = 8.74996e-06 INFO: Result is correct