If you have tried hardware emulation in the previous step, you must first run the following command to disable the hw_emu
mode:
source setup_emu.sh -s off
Next, you can execute the compiled host_krnl_cbc_test
file to test the system in hardware mode. You can use command option -s
to disable ap_ctrl_chain
execution mode and compare the performance difference.
./host_krnl_cbc_test # execute in ap_ctrl_chain mode
./host_krnl_cbc_test -s # execute in emulated ap_ctrl_hs mode
Note that because the kernel running time is very short, the CPU/XRT needs frequent interactions with the kernel. Therefore, the performance data reported by the program might vary between different executions brought by CPU/PCIe latency.
Thank you for completing this tutorial.
Copyright © 2020–2023 Advanced Micro Devices, Inc