With the Xilinx Runtime (XRT) initialized, run the application by running the following command from the build directory:
./05_pipelined_vadd alveo_examples
The program will output a message similar to this:
-- Example 5: Pipelining Kernel Execution --
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’
-- Running kernel test with XRT-allocated contiguous buffers and wide VADD (16 values/clock)
OCL-mapped contiguous buffer example complete!
--------------- Key execution times ---------------
OpenCL™ Initialization: 263.001ms
Allocate contiguous OpenCL buffers: 915.048 ms
Map buffers to userspace pointers: 0.282 ms
Populating buffer inputs: 1166.471 ms
Software VADD run: 1195.575ms
Memory object migration enqueue: 0.441ms
Wait for kernel to complete: 692.173 ms
And comparing these results to the previous run:
| Operation | Example 4 | Example 5 | Δ4→5 |
|---|---|---|---|
| Software VADD | 820.596 ms | 1166.471 ms | 345.875 ms |
| Hardware VADD (Total) | 1184.897 ms | 692.172 ms | −492.725 ms |
| ΔAlveo→CPU | 364.186 ms | −503.402 ms | 867.588 ms |
Mission accomplished for sure this time. Look at those margins!
There is no way this would turn around on us now, right? Sneak out early — I am sure there is not an “other shoe” that’s going to drop.