With the XRT initialized, run the application by running the following command from the build directory:
./00_load_kernels alveo_examples
The program will output a message similar to this:
-- Example 0: Loading the FPGA Binary --
Loading XCLBin to program the Alveo board:
Found Platform
Platform Name: Xilinx
XCLBIN File Name: alveo_examples
INFO: Importing ./alveo_examples.xclbin
Loading: ?./alveo_examples.xclbin?
FPGA programmed, example complete!
-- Key execution times --
OpenCL Initialization : 1624.634 ms
Our FPGA took 1.6 seconds to initialize. Be aware of this kernel load time; it includes disk I/O, PCIe® latency, configuration overhead, and a number of other operations. Usually you will want to configure the FPGA during your application’s startup time, or even pre-configure it. Run the application again with the bitstream already loaded:
-- Key execution times --
OpenCL Initialization : 262.374 ms
0.26 seconds is much better than 1.6 seconds! We still have to read the file from disk, parse it, and ensure the xclbin loaded into the FPGA is correct, but the overall initialization time is significantly lower.