For Versal AI Core devices, the AI Engine graph application is an xxx. The graph
application (libadf.a) is packaged as part of the device binary
(.xclbin) by the
v++ --package command, and
also copied to the SD card. The following is an example of how you would load and run
the graph application from the software program.
- Add required header to
- Set up the application environment as described in Specifying the Device ID and Loading the XCLBIN.
- Identify the AI Engine graph
uuidof the loaded .xclbin, and the
nameof the graph application:
auto my_graph = xrt::graph(device, uuid, "mygraph_top");
- Reset and run the graph application from the software program as
my_graph.reset(); std::cout << STR_PASSED << "my_graph.reset()" << std::endl; my_graph.run(0); std::cout << STR_PASSED << "my_graph.run()" << std::endl;